diff options
author | Justin Clark-Casey (justincc) | 2011-11-12 00:27:43 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-11-12 00:27:43 +0000 |
commit | e61ea79c722f186a6f9335405604b4f809d7c3b2 (patch) | |
tree | 4a3bcdba3d5617f7c403703cfe00f7f336800c24 | |
parent | Add threads to the watchdog thread list before we start them. (diff) | |
download | opensim-SC-e61ea79c722f186a6f9335405604b4f809d7c3b2.zip opensim-SC-e61ea79c722f186a6f9335405604b4f809d7c3b2.tar.gz opensim-SC-e61ea79c722f186a6f9335405604b4f809d7c3b2.tar.bz2 opensim-SC-e61ea79c722f186a6f9335405604b4f809d7c3b2.tar.xz |
doh - correct build break
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Watchdog.cs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/OpenSim/Framework/Watchdog.cs b/OpenSim/Framework/Watchdog.cs index 3a40d0e..8e82f5a 100644 --- a/OpenSim/Framework/Watchdog.cs +++ b/OpenSim/Framework/Watchdog.cs | |||
@@ -122,19 +122,20 @@ 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 | Thread thread = new Thread(start); | ||
126 | thread.Name = name; | ||
127 | thread.Priority = priority; | ||
128 | thread.IsBackground = isBackground; | ||
129 | |||
130 | ThreadWatchdogInfo twi = new ThreadWatchdogInfo(thread, timeout); | ||
131 | |||
125 | m_log.Debug("[WATCHDOG]: Started tracking thread \"" + twi.Thread.Name + "\" (ID " + twi.Thread.ManagedThreadId + ")"); | 132 | m_log.Debug("[WATCHDOG]: Started tracking thread \"" + twi.Thread.Name + "\" (ID " + twi.Thread.ManagedThreadId + ")"); |
126 | 133 | ||
127 | lock (m_threads) | 134 | lock (m_threads) |
128 | m_threads.Add(twi.Thread.ManagedThreadId, twi); | 135 | m_threads.Add(twi.Thread.ManagedThreadId, twi); |
129 | 136 | ||
130 | Thread thread = new Thread(start); | ||
131 | thread.Name = name; | ||
132 | thread.Priority = priority; | ||
133 | thread.IsBackground = isBackground; | ||
134 | thread.Start(); | 137 | thread.Start(); |
135 | 138 | ||
136 | ThreadWatchdogInfo twi = new ThreadWatchdogInfo(thread, timeout); | ||
137 | |||
138 | return thread; | 139 | return thread; |
139 | } | 140 | } |
140 | 141 | ||