Some multithreaded fixes, deadlocks due to List reads during adds
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="BenchmarkDotNet" Version="0.13.5" />
|
||||
<PackageReference Include="Meziantou.Analyzer" Version="2.0.61">
|
||||
<PackageReference Include="Meziantou.Analyzer" Version="2.0.62">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
|
||||
@@ -45,10 +45,11 @@ internal static class Program
|
||||
0
|
||||
);
|
||||
|
||||
var threads = 1;
|
||||
var config = new SolverConfig()
|
||||
{
|
||||
Iterations = 30_000 / 1,
|
||||
ThreadCount = 1,
|
||||
Iterations = 30_000 / threads,
|
||||
ThreadCount = threads,
|
||||
};
|
||||
|
||||
Debugger.Break();
|
||||
|
||||
Reference in New Issue
Block a user