From cef8c5e9d7ce49cc47e7ef1816465064d889d6d5 Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Thu, 13 Sep 2007 11:11:08 +0000 Subject: Hiding evidence that I once was a VB coder (thanks to refactoring). Renamed member names to smallcapsy. --- .../ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs') 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 /// class LSLLongCmdHandler { - private Thread CmdHandlerThread; - private int CmdHandlerThreadCycleSleepms = 100; + private Thread cmdHandlerThread; + private int cmdHandlerThreadCycleSleepms = 100; - private ScriptEngine myScriptEngine; + private ScriptEngine m_ScriptEngine; public LSLLongCmdHandler(ScriptEngine _ScriptEngine) { - myScriptEngine = _ScriptEngine; + m_ScriptEngine = _ScriptEngine; // Start the thread that will be doing the work - CmdHandlerThread = new Thread(CmdHandlerThreadLoop); - CmdHandlerThread.Name = "CmdHandlerThread"; - CmdHandlerThread.Priority = ThreadPriority.BelowNormal; - CmdHandlerThread.IsBackground = true; - CmdHandlerThread.Start(); + cmdHandlerThread = new Thread(CmdHandlerThreadLoop); + cmdHandlerThread.Name = "CmdHandlerThread"; + cmdHandlerThread.Priority = ThreadPriority.BelowNormal; + cmdHandlerThread.IsBackground = true; + cmdHandlerThread.Start(); } ~LSLLongCmdHandler() { // Shut down thread try { - if (CmdHandlerThread != null) + if (cmdHandlerThread != null) { - if (CmdHandlerThread.IsAlive == true) + if (cmdHandlerThread.IsAlive == true) { - CmdHandlerThread.Abort(); - CmdHandlerThread.Join(); + cmdHandlerThread.Abort(); + cmdHandlerThread.Join(); } } } @@ -51,7 +51,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine CheckTimerEvents(); // Sleep before next cycle - Thread.Sleep(CmdHandlerThreadCycleSleepms); + Thread.Sleep(cmdHandlerThreadCycleSleepms); } } @@ -134,7 +134,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine if (ts.next.ToUniversalTime() < DateTime.Now.ToUniversalTime()) { // Add it to queue - myScriptEngine.myEventQueueManager.AddToScriptQueue(ts.localID, ts.itemID, "timer", new object[] { }); + m_ScriptEngine.m_EventQueueManager.AddToScriptQueue(ts.localID, ts.itemID, "timer", new object[] { }); // set next interval -- cgit v1.1