aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-01-01 23:50:38 +0000
committerJustin Clark-Casey (justincc)2013-01-01 23:50:38 +0000
commit416244051d248236cec142d3bda29d03f39f5606 (patch)
tree1c0a73e3a89431a7221c0de3ab3a1632eb42e538 /OpenSim/Framework/Util.cs
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC-416244051d248236cec142d3bda29d03f39f5606.zip
opensim-SC-416244051d248236cec142d3bda29d03f39f5606.tar.gz
opensim-SC-416244051d248236cec142d3bda29d03f39f5606.tar.bz2
opensim-SC-416244051d248236cec142d3bda29d03f39f5606.tar.xz
refactor: call Util.InitThreadPool() if we are initializing an uninitialized pool on first use rather than constructing it ourselves.
No functional change.
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r--OpenSim/Framework/Util.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index ea2d28a..9bc9417 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -1719,7 +1719,7 @@ namespace OpenSim.Framework
1719 break; 1719 break;
1720 case FireAndForgetMethod.SmartThreadPool: 1720 case FireAndForgetMethod.SmartThreadPool:
1721 if (m_ThreadPool == null) 1721 if (m_ThreadPool == null)
1722 m_ThreadPool = new SmartThreadPool(2000, 15, 2); 1722 InitThreadPool(15);
1723 m_ThreadPool.QueueWorkItem(SmartThreadPoolCallback, new object[] { realCallback, obj }); 1723 m_ThreadPool.QueueWorkItem(SmartThreadPoolCallback, new object[] { realCallback, obj });
1724 break; 1724 break;
1725 case FireAndForgetMethod.Thread: 1725 case FireAndForgetMethod.Thread: