minor: Assign names to the different SmartThreadPools for debugging purposes.

A different approach to the patch in http://opensimulator.org/mantis/view.php?id=6462
that doesn't involve further forking of SmartThreadPool
0.7.5-pf-bulletsim
Justin Clark-Casey (justincc) 2013-01-01 23:57:20 +00:00
parent 416244051d
commit bc9a7ba0d6
2 changed files with 2 additions and 0 deletions

View File

@ -1647,6 +1647,7 @@ namespace OpenSim.Framework
throw new InvalidOperationException("SmartThreadPool is already initialized"); throw new InvalidOperationException("SmartThreadPool is already initialized");
m_ThreadPool = new SmartThreadPool(2000, maxThreads, 2); m_ThreadPool = new SmartThreadPool(2000, maxThreads, 2);
m_ThreadPool.Name = "Util";
} }
public static int FireAndForgetCount() public static int FireAndForgetCount()

View File

@ -1487,6 +1487,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
startInfo.StartSuspended = true; startInfo.StartSuspended = true;
m_ThreadPool = new SmartThreadPool(startInfo); m_ThreadPool = new SmartThreadPool(startInfo);
m_ThreadPool.Name = "XEngine";
} }
// //