diff options
Diffstat (limited to 'OpenSim/Framework/Watchdog.cs')
-rw-r--r-- | OpenSim/Framework/Watchdog.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Framework/Watchdog.cs b/OpenSim/Framework/Watchdog.cs index 5ffa890..3a40d0e 100644 --- a/OpenSim/Framework/Watchdog.cs +++ b/OpenSim/Framework/Watchdog.cs | |||
@@ -122,6 +122,11 @@ namespace OpenSim.Framework | |||
122 | public static Thread StartThread( | 122 | public static Thread StartThread( |
123 | ThreadStart start, string name, ThreadPriority priority, bool isBackground, int timeout) | 123 | ThreadStart start, string name, ThreadPriority priority, bool isBackground, int timeout) |
124 | { | 124 | { |
125 | m_log.Debug("[WATCHDOG]: Started tracking thread \"" + twi.Thread.Name + "\" (ID " + twi.Thread.ManagedThreadId + ")"); | ||
126 | |||
127 | lock (m_threads) | ||
128 | m_threads.Add(twi.Thread.ManagedThreadId, twi); | ||
129 | |||
125 | Thread thread = new Thread(start); | 130 | Thread thread = new Thread(start); |
126 | thread.Name = name; | 131 | thread.Name = name; |
127 | thread.Priority = priority; | 132 | thread.Priority = priority; |
@@ -130,11 +135,6 @@ namespace OpenSim.Framework | |||
130 | 135 | ||
131 | ThreadWatchdogInfo twi = new ThreadWatchdogInfo(thread, timeout); | 136 | ThreadWatchdogInfo twi = new ThreadWatchdogInfo(thread, timeout); |
132 | 137 | ||
133 | m_log.Debug("[WATCHDOG]: Started tracking thread \"" + twi.Thread.Name + "\" (ID " + twi.Thread.ManagedThreadId + ")"); | ||
134 | |||
135 | lock (m_threads) | ||
136 | m_threads.Add(twi.Thread.ManagedThreadId, twi); | ||
137 | |||
138 | return thread; | 138 | return thread; |
139 | } | 139 | } |
140 | 140 | ||