Skip to content

Commit cfa7a80

Browse files
committed
Устранение предупреждения CS1573, 1591, 1734, 1710, 1702, 0168, 1572, 1574, 1701
1 parent 64f49f6 commit cfa7a80

2 files changed

Lines changed: 11 additions & 14 deletions

File tree

MathCore/MathCore.csproj

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,8 @@
4444

4545
<PropertyGroup>
4646
<NoWarn>
47-
0168;
48-
1572;1574;
49-
1701;1702;1710;1734;
50-
1591;1573;
51-
52-
53-
</NoWarn>
47+
48+
</NoWarn>
5449
</PropertyGroup>
5550

5651
<PropertyGroup Condition="'$(Configuration)'=='Release'">

MathCore/Threading/InstanceThreadPool.cs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ public InstanceThreadPool(int MaxThreadsCount, ThreadPriority Priority = ThreadP
3030
Initialize();
3131
}
3232

33-
/// <summary>Инициализирует потоки пула</summary>
34-
/// <remarks>
35-
/// Создает <see cref="_Threads.Length"/> потоков, каждый из которых
36-
/// будет выполнять делегат <see cref="WorkingThread"/>, и запускает
37-
/// каждый поток.
38-
/// </remarks>
33+
/// <summary>Инициализирует потоки пула</summary>
34+
/// <remarks>
35+
/// Создает <see cref="_Threads.Length"/> потоков, каждый из которых
36+
/// будет выполнять делегат <see cref="WorkingThread"/>, и запускает
37+
/// каждый поток.
38+
/// </remarks>
3939
private void Initialize()
4040
{
4141
for (var i = 0; i < _Threads.Length; i++)
@@ -133,7 +133,7 @@ private void WorkingThread()
133133
}
134134
}
135135
}
136-
catch (ThreadInterruptedException e)
136+
catch (ThreadInterruptedException)
137137
{
138138
Trace.TraceWarning("Поток {0} был принудительно прерван при завершении работы пула", thread_name);
139139
}
@@ -157,5 +157,7 @@ public void Dispose()
157157

158158
_ExecuteEvent.Dispose();
159159
_WorkingEvent.Dispose();
160+
161+
GC.SuppressFinalize(this);
160162
}
161163
}

0 commit comments

Comments
 (0)