diff options
author | Adam Frisby | 2008-04-21 07:09:17 +0000 |
---|---|---|
committer | Adam Frisby | 2008-04-21 07:09:17 +0000 |
commit | fef3b3689492dea63693c964bcdbec9f5137eb5e (patch) | |
tree | 7791eef001d85d3e1de863a68f26ff9434d062ca /OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs | |
parent | * Terrain Module code has been reformatted to comply with guidelines. (diff) | |
download | opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.zip opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.gz opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.bz2 opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.xz |
* Optimised using statements and namespace references across entire project (this took a while to run).
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) |