diff options
author | Tedd Hansen | 2008-02-21 10:43:24 +0000 |
---|---|---|
committer | Tedd Hansen | 2008-02-21 10:43:24 +0000 |
commit | 7102ac77698f4bfd7406d6e8871db7b006c2cae2 (patch) | |
tree | 7253775d1a6ae64e2469b1ef79863aaebe83e1d1 /OpenSim/Region/ScriptEngine/Common/ScriptEngineBase | |
parent | Remove a couple compiler warnings. (diff) | |
download | opensim-SC-7102ac77698f4bfd7406d6e8871db7b006c2cae2.zip opensim-SC-7102ac77698f4bfd7406d6e8871db7b006c2cae2.tar.gz opensim-SC-7102ac77698f4bfd7406d6e8871db7b006c2cae2.tar.bz2 opensim-SC-7102ac77698f4bfd7406d6e8871db7b006c2cae2.tar.xz |
"threads" command now works. I've added manual tracking of threads (only if compiled in DEBUG mode)... Its ugly and even requires a separate thread to track the treads, but it will be very valuable in debugging.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase')
4 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncLSLCommandManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncLSLCommandManager.cs index 222b8f2..81e3438 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncLSLCommandManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncLSLCommandManager.cs | |||
@@ -57,6 +57,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
57 | cmdHandlerThread.Priority = ThreadPriority.BelowNormal; | 57 | cmdHandlerThread.Priority = ThreadPriority.BelowNormal; |
58 | cmdHandlerThread.IsBackground = true; | 58 | cmdHandlerThread.IsBackground = true; |
59 | cmdHandlerThread.Start(); | 59 | cmdHandlerThread.Start(); |
60 | OpenSim.Framework.ThreadTracker.Add(cmdHandlerThread); | ||
60 | } | 61 | } |
61 | 62 | ||
62 | public void ReadConfig() | 63 | public void ReadConfig() |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs index d4db935..6f96654 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs | |||
@@ -117,6 +117,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
117 | EventQueueThread.Priority = MyThreadPriority; | 117 | EventQueueThread.Priority = MyThreadPriority; |
118 | EventQueueThread.Name = "EventQueueManagerThread_" + ThreadCount; | 118 | EventQueueThread.Name = "EventQueueManagerThread_" + ThreadCount; |
119 | EventQueueThread.Start(); | 119 | EventQueueThread.Start(); |
120 | OpenSim.Framework.ThreadTracker.Add(EventQueueThread); | ||
120 | 121 | ||
121 | // Look at this... Don't you wish everyone did that solid coding everywhere? :P | 122 | // Look at this... Don't you wish everyone did that solid coding everywhere? :P |
122 | if (ThreadCount == int.MaxValue) | 123 | if (ThreadCount == int.MaxValue) |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs index 47446a3..4776ffe 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs | |||
@@ -78,6 +78,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
78 | MaintenanceThreadThread.Name = "ScriptMaintenanceThread"; | 78 | MaintenanceThreadThread.Name = "ScriptMaintenanceThread"; |
79 | MaintenanceThreadThread.IsBackground = true; | 79 | MaintenanceThreadThread.IsBackground = true; |
80 | MaintenanceThreadThread.Start(); | 80 | MaintenanceThreadThread.Start(); |
81 | OpenSim.Framework.ThreadTracker.Add(MaintenanceThreadThread); | ||
81 | } | 82 | } |
82 | } | 83 | } |
83 | 84 | ||
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs index 43ff4ac..684d133 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs | |||
@@ -160,6 +160,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
160 | t.IsBackground = true; | 160 | t.IsBackground = true; |
161 | t.Priority = ThreadPriority.Normal; | 161 | t.Priority = ThreadPriority.Normal; |
162 | t.Start(); | 162 | t.Start(); |
163 | OpenSim.Framework.ThreadTracker.Add(t); | ||
163 | return t; | 164 | return t; |
164 | } | 165 | } |
165 | 166 | ||