From c98d215242473cb54422b069a43db1853627fd18 Mon Sep 17 00:00:00 2001 From: "Justin Clark-Casey (justincc)" Date: Tue, 1 Jan 2013 23:50:38 +0000 Subject: [PATCH] refactor: call Util.InitThreadPool() if we are initializing an uninitialized pool on first use rather than constructing it ourselves. No functional change. --- OpenSim/Framework/Util.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index a0c54a027e..8957b2badf 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs @@ -1712,7 +1712,7 @@ namespace OpenSim.Framework break; case FireAndForgetMethod.SmartThreadPool: if (m_ThreadPool == null) - m_ThreadPool = new SmartThreadPool(2000, 15, 2); + InitThreadPool(15); m_ThreadPool.QueueWorkItem(SmartThreadPoolCallback, new object[] { realCallback, obj }); break; case FireAndForgetMethod.Thread: