diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs index ad41e5b..2bf0e41 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs | |||
@@ -27,9 +27,8 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | ||
31 | using System.Text; | ||
32 | using System.Threading; | 30 | using System.Threading; |
31 | using OpenSim.Framework; | ||
33 | 32 | ||
34 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | 33 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase |
35 | { | 34 | { |
@@ -94,7 +93,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
94 | MaintenanceThreadThread.Name = "ScriptMaintenanceThread"; | 93 | MaintenanceThreadThread.Name = "ScriptMaintenanceThread"; |
95 | MaintenanceThreadThread.IsBackground = true; | 94 | MaintenanceThreadThread.IsBackground = true; |
96 | MaintenanceThreadThread.Start(); | 95 | MaintenanceThreadThread.Start(); |
97 | OpenSim.Framework.ThreadTracker.Add(MaintenanceThreadThread); | 96 | ThreadTracker.Add(MaintenanceThreadThread); |
98 | } | 97 | } |
99 | } | 98 | } |
100 | 99 | ||
@@ -144,7 +143,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
144 | { | 143 | { |
145 | while (true) | 144 | while (true) |
146 | { | 145 | { |
147 | System.Threading.Thread.Sleep(MaintenanceLoopms); // Sleep before next pass | 146 | Thread.Sleep(MaintenanceLoopms); // Sleep before next pass |
148 | 147 | ||
149 | // Reset counters? | 148 | // Reset counters? |
150 | if (MaintenanceLoopTicks_ScriptLoadUnload_ResetCount) | 149 | if (MaintenanceLoopTicks_ScriptLoadUnload_ResetCount) |