aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-01-01 23:57:20 +0000
committerJustin Clark-Casey (justincc)2013-01-01 23:57:20 +0000
commitbc9a7ba0d6c0f7ad90a270c93acbb9b5c5f08645 (patch)
treeaa3aab8c1d126bec92453396402e011df9f021e5
parentrefactor: call Util.InitThreadPool() if we are initializing an uninitialized ... (diff)
downloadopensim-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
-rw-r--r--OpenSim/Framework/Util.cs1
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/XEngine.cs1
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 //