aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/YEngine/XMRScriptThread.cs
diff options
context:
space:
mode:
authorUbitUmarov2019-11-22 07:01:17 +0000
committerUbitUmarov2019-11-22 07:01:17 +0000
commit943d0935a624710b2d38bd4be906aaada2c2d1fe (patch)
tree1857b4d4bac5b6f936347baa569bf0b8e176d649 /OpenSim/Region/ScriptEngine/YEngine/XMRScriptThread.cs
parentOooopss (diff)
downloadopensim-SC-943d0935a624710b2d38bd4be906aaada2c2d1fe.zip
opensim-SC-943d0935a624710b2d38bd4be906aaada2c2d1fe.tar.gz
opensim-SC-943d0935a624710b2d38bd4be906aaada2c2d1fe.tar.bz2
opensim-SC-943d0935a624710b2d38bd4be906aaada2c2d1fe.tar.xz
YEngine, change default number of exec threads to 2 of priority Normal. Let the threads priority a option on ini files
Diffstat (limited to 'OpenSim/Region/ScriptEngine/YEngine/XMRScriptThread.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/YEngine/XMRScriptThread.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/YEngine/XMRScriptThread.cs b/OpenSim/Region/ScriptEngine/YEngine/XMRScriptThread.cs
index f68fd51..c71eb81 100644
--- a/OpenSim/Region/ScriptEngine/YEngine/XMRScriptThread.cs
+++ b/OpenSim/Region/ScriptEngine/YEngine/XMRScriptThread.cs
@@ -56,13 +56,13 @@ namespace OpenSim.Region.ScriptEngine.Yengine
56 } 56 }
57 } 57 }
58 58
59 public void StartThreadWorker(int i) 59 public void StartThreadWorker(int i, ThreadPriority priority)
60 { 60 {
61 Thread thd; 61 Thread thd;
62 if(i >= 0) 62 if(i >= 0)
63 thd = Yengine.StartMyThread(RunScriptThread, "YScript" + i.ToString(), ThreadPriority.BelowNormal); 63 thd = Yengine.StartMyThread(RunScriptThread, "YScript" + i.ToString(), priority);
64 else 64 else
65 thd = Yengine.StartMyThread(RunScriptThread, "YScript", ThreadPriority.BelowNormal); 65 thd = Yengine.StartMyThread(RunScriptThread, "YScript", priority);
66 lock(m_WakeUpLock) 66 lock(m_WakeUpLock)
67 m_RunningInstances.Add(thd.ManagedThreadId, null); 67 m_RunningInstances.Add(thd.ManagedThreadId, null);
68 } 68 }