diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Watchdog.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/OpenSim/Framework/Watchdog.cs b/OpenSim/Framework/Watchdog.cs index 5ffa890..952f039 100644 --- a/OpenSim/Framework/Watchdog.cs +++ b/OpenSim/Framework/Watchdog.cs | |||
@@ -164,7 +164,11 @@ namespace OpenSim.Framework | |||
164 | return m_threads.Remove(threadID); | 164 | return m_threads.Remove(threadID); |
165 | } | 165 | } |
166 | 166 | ||
167 | <<<<<<< HEAD:OpenSim/Framework/Watchdog.cs | ||
168 | public static bool RemoveThread(int threadID) | ||
169 | ======= | ||
167 | public static bool AbortThread(int threadID) | 170 | public static bool AbortThread(int threadID) |
171 | >>>>>>> master:OpenSim/Framework/Watchdog.cs | ||
168 | { | 172 | { |
169 | lock (m_threads) | 173 | lock (m_threads) |
170 | { | 174 | { |
@@ -194,10 +198,14 @@ namespace OpenSim.Framework | |||
194 | try | 198 | try |
195 | { | 199 | { |
196 | if (m_threads.TryGetValue(threadID, out threadInfo)) | 200 | if (m_threads.TryGetValue(threadID, out threadInfo)) |
201 | <<<<<<< HEAD:OpenSim/Framework/Watchdog.cs | ||
202 | threadInfo.LastTick = Environment.TickCount; | ||
203 | ======= | ||
197 | { | 204 | { |
198 | threadInfo.LastTick = Environment.TickCount & Int32.MaxValue; | 205 | threadInfo.LastTick = Environment.TickCount & Int32.MaxValue; |
199 | threadInfo.IsTimedOut = false; | 206 | threadInfo.IsTimedOut = false; |
200 | } | 207 | } |
208 | >>>>>>> master:OpenSim/Framework/Watchdog.cs | ||
201 | else | 209 | else |
202 | { | 210 | { |
203 | m_log.WarnFormat("[WATCHDOG]: Asked to update thread {0} which is not being monitored", threadID); | 211 | m_log.WarnFormat("[WATCHDOG]: Asked to update thread {0} which is not being monitored", threadID); |
@@ -226,7 +234,7 @@ namespace OpenSim.Framework | |||
226 | 234 | ||
227 | lock (m_threads) | 235 | lock (m_threads) |
228 | { | 236 | { |
229 | int now = Environment.TickCount & Int32.MaxValue; | 237 | int now = Environment.TickCount; |
230 | 238 | ||
231 | foreach (ThreadWatchdogInfo threadInfo in m_threads.Values) | 239 | foreach (ThreadWatchdogInfo threadInfo in m_threads.Values) |
232 | { | 240 | { |
@@ -252,4 +260,4 @@ namespace OpenSim.Framework | |||
252 | m_watchdogTimer.Start(); | 260 | m_watchdogTimer.Start(); |
253 | } | 261 | } |
254 | } | 262 | } |
255 | } \ No newline at end of file | 263 | } |