aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs30
1 files changed, 15 insertions, 15 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs
index 5ce972a..7ce6556 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs
@@ -11,32 +11,32 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
11 /// </summary> 11 /// </summary>
12 class LSLLongCmdHandler 12 class LSLLongCmdHandler
13 { 13 {
14 private Thread CmdHandlerThread; 14 private Thread cmdHandlerThread;
15 private int CmdHandlerThreadCycleSleepms = 100; 15 private int cmdHandlerThreadCycleSleepms = 100;
16 16
17 private ScriptEngine myScriptEngine; 17 private ScriptEngine m_ScriptEngine;
18 public LSLLongCmdHandler(ScriptEngine _ScriptEngine) 18 public LSLLongCmdHandler(ScriptEngine _ScriptEngine)
19 { 19 {
20 myScriptEngine = _ScriptEngine; 20 m_ScriptEngine = _ScriptEngine;
21 21
22 // Start the thread that will be doing the work 22 // Start the thread that will be doing the work
23 CmdHandlerThread = new Thread(CmdHandlerThreadLoop); 23 cmdHandlerThread = new Thread(CmdHandlerThreadLoop);
24 CmdHandlerThread.Name = "CmdHandlerThread"; 24 cmdHandlerThread.Name = "CmdHandlerThread";
25 CmdHandlerThread.Priority = ThreadPriority.BelowNormal; 25 cmdHandlerThread.Priority = ThreadPriority.BelowNormal;
26 CmdHandlerThread.IsBackground = true; 26 cmdHandlerThread.IsBackground = true;
27 CmdHandlerThread.Start(); 27 cmdHandlerThread.Start();
28 } 28 }
29 ~LSLLongCmdHandler() 29 ~LSLLongCmdHandler()
30 { 30 {
31 // Shut down thread 31 // Shut down thread
32 try 32 try
33 { 33 {
34 if (CmdHandlerThread != null) 34 if (cmdHandlerThread != null)
35 { 35 {
36 if (CmdHandlerThread.IsAlive == true) 36 if (cmdHandlerThread.IsAlive == true)
37 { 37 {
38 CmdHandlerThread.Abort(); 38 cmdHandlerThread.Abort();
39 CmdHandlerThread.Join(); 39 cmdHandlerThread.Join();
40 } 40 }
41 } 41 }
42 } 42 }
@@ -51,7 +51,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
51 CheckTimerEvents(); 51 CheckTimerEvents();
52 52
53 // Sleep before next cycle 53 // Sleep before next cycle
54 Thread.Sleep(CmdHandlerThreadCycleSleepms); 54 Thread.Sleep(cmdHandlerThreadCycleSleepms);
55 } 55 }
56 } 56 }
57 57
@@ -134,7 +134,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
134 if (ts.next.ToUniversalTime() < DateTime.Now.ToUniversalTime()) 134 if (ts.next.ToUniversalTime() < DateTime.Now.ToUniversalTime())
135 { 135 {
136 // Add it to queue 136 // Add it to queue
137 myScriptEngine.myEventQueueManager.AddToScriptQueue(ts.localID, ts.itemID, "timer", new object[] { }); 137 m_ScriptEngine.m_EventQueueManager.AddToScriptQueue(ts.localID, ts.itemID, "timer", new object[] { });
138 // set next interval 138 // set next interval
139 139
140 140