diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/YEngine/XMRScriptThread.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/YEngine/XMRScriptThread.cs | 6 |
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 | } |