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/Framework/Util.cs | |
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 '')
-rw-r--r-- | OpenSim/Framework/Util.cs | 1 |
1 files changed, 1 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() |