diff options
author | Justin Clark-Casey (justincc) | 2013-01-01 23:57:20 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-01-01 23:57:20 +0000 |
commit | bc9a7ba0d6c0f7ad90a270c93acbb9b5c5f08645 (patch) | |
tree | aa3aab8c1d126bec92453396402e011df9f021e5 /OpenSim | |
parent | refactor: call Util.InitThreadPool() if we are initializing an uninitialized ... (diff) | |
download | opensim-SC_OLD-bc9a7ba0d6c0f7ad90a270c93acbb9b5c5f08645.zip opensim-SC_OLD-bc9a7ba0d6c0f7ad90a270c93acbb9b5c5f08645.tar.gz opensim-SC_OLD-bc9a7ba0d6c0f7ad90a270c93acbb9b5c5f08645.tar.bz2 opensim-SC_OLD-bc9a7ba0d6c0f7ad90a270c93acbb9b5c5f08645.tar.xz |
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
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/Util.cs | 1 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 9bc9417..4fd8a2d 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -1647,6 +1647,7 @@ namespace OpenSim.Framework | |||
1647 | throw new InvalidOperationException("SmartThreadPool is already initialized"); | 1647 | throw new InvalidOperationException("SmartThreadPool is already initialized"); |
1648 | 1648 | ||
1649 | m_ThreadPool = new SmartThreadPool(2000, maxThreads, 2); | 1649 | m_ThreadPool = new SmartThreadPool(2000, maxThreads, 2); |
1650 | m_ThreadPool.Name = "Util"; | ||
1650 | } | 1651 | } |
1651 | 1652 | ||
1652 | public static int FireAndForgetCount() | 1653 | public static int FireAndForgetCount() |
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index f38d17d..79cec04 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -1487,6 +1487,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
1487 | startInfo.StartSuspended = true; | 1487 | startInfo.StartSuspended = true; |
1488 | 1488 | ||
1489 | m_ThreadPool = new SmartThreadPool(startInfo); | 1489 | m_ThreadPool = new SmartThreadPool(startInfo); |
1490 | m_ThreadPool.Name = "XEngine"; | ||
1490 | } | 1491 | } |
1491 | 1492 | ||
1492 | // | 1493 | // |