Update Multiprocessor.cs

pull/1/head
Ogoun 5 years ago
parent b3827ad830
commit dcdb71f121

@ -72,18 +72,28 @@ namespace ZeroLevel.Utils
public void Dispose()
{
_is_disposed = true;
try
{
_queue.CompleteAdding();
Thread.Yield();
_queue.Dispose();
foreach (var thread in _threads)
{
try
{
thread.Join();
thread.Abort();
}
catch { }
}
foreach (var thread in _threads)
{
try
{
thread.Join();
}
catch { }
}
}
catch { }
}
}
}

Loading…
Cancel
Save

Powered by TurnKey Linux.