aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2017-05-23 06:03:51 +0100
committerUbitUmarov2017-05-23 06:03:51 +0100
commit3c97bb1e6fe5a850f35929da58321655331ebae1 (patch)
tree41ff2b076518c8db25a87bb22e7886f953ecf791
parentallow new thread creation if it was aborted on AsyncCommandManager (diff)
downloadopensim-SC_OLD-3c97bb1e6fe5a850f35929da58321655331ebae1.zip
opensim-SC_OLD-3c97bb1e6fe5a850f35929da58321655331ebae1.tar.gz
opensim-SC_OLD-3c97bb1e6fe5a850f35929da58321655331ebae1.tar.bz2
opensim-SC_OLD-3c97bb1e6fe5a850f35929da58321655331ebae1.tar.xz
fix lock position removing a not necessary function
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs11
1 files changed, 1 insertions, 10 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs
index 4714275..eb6455a 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs
@@ -173,16 +173,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
173 m_XmlRequest[m_ScriptEngine] = new XmlRequest(this); 173 m_XmlRequest[m_ScriptEngine] = new XmlRequest(this);
174 174
175 numInstances++; 175 numInstances++;
176 StartThread(); 176 if (cmdHandlerThread == null)
177 }
178 }
179
180 private static void StartThread()
181 {
182 if (cmdHandlerThread == null)
183 {
184 // Start the thread that will be doing the work
185 lock (staticLock)
186 { 177 {
187 cmdHandlerThread = WorkManager.StartThread( 178 cmdHandlerThread = WorkManager.StartThread(
188 CmdHandlerThreadLoop, "AsyncLSLCmdHandlerThread", ThreadPriority.Normal, true, true); 179 CmdHandlerThreadLoop, "AsyncLSLCmdHandlerThread", ThreadPriority.Normal, true, true);