aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs
index 59f669b..0d8c160 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs
@@ -51,7 +51,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
51 public EventQueueManager(ScriptEngine _ScriptEngine) 51 public EventQueueManager(ScriptEngine _ScriptEngine)
52 { 52 {
53 myScriptEngine = _ScriptEngine; 53 myScriptEngine = _ScriptEngine;
54 Common.SendToDebug("EventQueueManager Start"); 54 myScriptEngine.m_logger.Verbose("ScriptEngine", "EventQueueManager Start");
55 // Start worker thread 55 // Start worker thread
56 EventQueueThread = new Thread(EventQueueThreadLoop); 56 EventQueueThread = new Thread(EventQueueThreadLoop);
57 EventQueueThread.IsBackground = true; 57 EventQueueThread.IsBackground = true;
@@ -70,7 +70,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
70 } 70 }
71 catch (Exception e) 71 catch (Exception e)
72 { 72 {
73 Common.SendToDebug("EventQueueManager Exception killing worker thread: " + e.ToString()); 73 myScriptEngine.m_logger.Verbose("ScriptEngine", "EventQueueManager Exception killing worker thread: " + e.ToString());
74 } 74 }
75 } 75 }
76 // Todo: Clean up our queues 76 // Todo: Clean up our queues
@@ -79,7 +79,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
79 79
80 private void EventQueueThreadLoop() 80 private void EventQueueThreadLoop()
81 { 81 {
82 Common.SendToDebug("EventQueueManager Worker thread spawned"); 82 myScriptEngine.m_logger.Verbose("ScriptEngine", "EventQueueManager Worker thread spawned");
83 try 83 try
84 { 84 {
85 while (true) 85 while (true)
@@ -93,7 +93,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
93 { 93 {
94 // Something in queue, process 94 // Something in queue, process
95 QueueItemStruct QIS = EventQueue.Dequeue(); 95 QueueItemStruct QIS = EventQueue.Dequeue();
96 Common.SendToDebug("Processing event for ObjectID: " + QIS.ObjectID + ", ScriptID: " + QIS.ScriptID + ", FunctionName: " + QIS.FunctionName); 96 myScriptEngine.m_logger.Verbose("ScriptEngine", "Processing event for ObjectID: " + QIS.ObjectID + ", ScriptID: " + QIS.ScriptID + ", FunctionName: " + QIS.FunctionName);
97 // TODO: Execute function 97 // TODO: Execute function
98 myScriptEngine.myScriptManager.ExecuteFunction(QIS.ObjectID, QIS.ScriptID, QIS.FunctionName, QIS.param); 98 myScriptEngine.myScriptManager.ExecuteFunction(QIS.ObjectID, QIS.ScriptID, QIS.FunctionName, QIS.param);
99 } 99 }
@@ -101,14 +101,14 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
101 } 101 }
102 catch (ThreadAbortException tae) 102 catch (ThreadAbortException tae)
103 { 103 {
104 Common.SendToDebug("EventQueueManager Worker thread killed: " + tae.Message); 104 myScriptEngine.m_logger.Verbose("ScriptEngine", "EventQueueManager Worker thread killed: " + tae.Message);
105 } 105 }
106 } 106 }
107 107
108 public void AddToObjectQueue(string ObjectID, string FunctionName, object[] param) 108 public void AddToObjectQueue(string ObjectID, string FunctionName, object[] param)
109 { 109 {
110 // Determine all scripts in Object and add to their queue 110 // Determine all scripts in Object and add to their queue
111 Common.SendToDebug("EventQueueManager Adding ObjectID: " + ObjectID + ", FunctionName: " + FunctionName); 111 myScriptEngine.m_logger.Verbose("ScriptEngine", "EventQueueManager Adding ObjectID: " + ObjectID + ", FunctionName: " + FunctionName);
112 112
113 foreach (string ScriptID in myScriptEngine.myScriptManager.GetScriptKeys(ObjectID)) 113 foreach (string ScriptID in myScriptEngine.myScriptManager.GetScriptKeys(ObjectID))
114 { 114 {