Use SmartThreadPool on Mono only, Windows system thread pool works fine

This commit is contained in:
Latif Khalifa
2013-07-19 10:43:38 +02:00
parent 7608560be2
commit d47c88c77e
2 changed files with 10 additions and 4 deletions

View File

@@ -62,8 +62,11 @@ namespace OpenMetaverse
public static void Shutdown()
{
Pool.Shutdown();
Pool = null;
if (Pool != null)
{
Pool.Shutdown();
Pool = null;
}
}
public static void QueueUserWorkItem(System.Threading.WaitCallback callback)