aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/ThreadTracker.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/ThreadTracker.cs')
-rw-r--r--OpenSim/Framework/ThreadTracker.cs11
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 @@
28using System; 28using System;
29using System.Collections; 29using System.Collections;
30using System.Collections.Generic; 30using System.Collections.Generic;
31using System.Text;
32using System.Threading; 31using System.Threading;
33 32
34namespace OpenSim.Framework 33namespace 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 }