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/Framework/ThreadTracker.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/Framework/ThreadTracker.cs')
-rw-r--r-- | OpenSim/Framework/ThreadTracker.cs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/OpenSim/Framework/ThreadTracker.cs b/OpenSim/Framework/ThreadTracker.cs index b71a0e1..8fe5b82 100644 --- a/OpenSim/Framework/ThreadTracker.cs +++ b/OpenSim/Framework/ThreadTracker.cs | |||
@@ -28,7 +28,6 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Text; | ||
32 | using System.Threading; | 31 | using System.Threading; |
33 | 32 | ||
34 | namespace OpenSim.Framework | 33 | namespace OpenSim.Framework |
@@ -36,7 +35,7 @@ namespace OpenSim.Framework | |||
36 | public static class ThreadTracker | 35 | public static class ThreadTracker |
37 | { | 36 | { |
38 | public static List<ThreadTrackerItem> m_Threads; | 37 | public static List<ThreadTrackerItem> m_Threads; |
39 | public static System.Threading.Thread ThreadTrackerThread; | 38 | public static Thread ThreadTrackerThread; |
40 | private static readonly long ThreadTimeout = 30 * 10000000; | 39 | private static readonly long ThreadTimeout = 30 * 10000000; |
41 | 40 | ||
42 | static ThreadTracker() | 41 | static ThreadTracker() |
@@ -46,7 +45,7 @@ namespace OpenSim.Framework | |||
46 | ThreadTrackerThread = new Thread(ThreadTrackerThreadLoop); | 45 | ThreadTrackerThread = new Thread(ThreadTrackerThreadLoop); |
47 | ThreadTrackerThread.Name = "ThreadTrackerThread"; | 46 | ThreadTrackerThread.Name = "ThreadTrackerThread"; |
48 | ThreadTrackerThread.IsBackground = true; | 47 | ThreadTrackerThread.IsBackground = true; |
49 | ThreadTrackerThread.Priority = System.Threading.ThreadPriority.BelowNormal; | 48 | ThreadTrackerThread.Priority = ThreadPriority.BelowNormal; |
50 | ThreadTrackerThread.Start(); | 49 | ThreadTrackerThread.Start(); |
51 | #endif | 50 | #endif |
52 | } | 51 | } |
@@ -60,7 +59,7 @@ namespace OpenSim.Framework | |||
60 | } | 59 | } |
61 | } | 60 | } |
62 | 61 | ||
63 | public static void Add(System.Threading.Thread thread) | 62 | public static void Add(Thread thread) |
64 | { | 63 | { |
65 | #if DEBUG | 64 | #if DEBUG |
66 | lock (m_Threads) | 65 | lock (m_Threads) |
@@ -73,7 +72,7 @@ namespace OpenSim.Framework | |||
73 | #endif | 72 | #endif |
74 | } | 73 | } |
75 | 74 | ||
76 | public static void Remove(System.Threading.Thread thread) | 75 | public static void Remove(Thread thread) |
77 | { | 76 | { |
78 | #if DEBUG | 77 | #if DEBUG |
79 | lock (m_Threads) | 78 | lock (m_Threads) |
@@ -126,7 +125,7 @@ namespace OpenSim.Framework | |||
126 | 125 | ||
127 | public class ThreadTrackerItem | 126 | public class ThreadTrackerItem |
128 | { | 127 | { |
129 | public System.Threading.Thread Thread; | 128 | public Thread Thread; |
130 | public long LastSeenActive; | 129 | public long LastSeenActive; |
131 | } | 130 | } |
132 | } | 131 | } |