diff options
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Monitoring/Watchdog.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Framework/Monitoring/Watchdog.cs b/OpenSim/Framework/Monitoring/Watchdog.cs index b00aa5c..ebbf095 100644 --- a/OpenSim/Framework/Monitoring/Watchdog.cs +++ b/OpenSim/Framework/Monitoring/Watchdog.cs | |||
@@ -133,7 +133,7 @@ namespace OpenSim.Framework.Monitoring | |||
133 | /// /summary> | 133 | /// /summary> |
134 | public static event Action<ThreadWatchdogInfo> OnWatchdogTimeout; | 134 | public static event Action<ThreadWatchdogInfo> OnWatchdogTimeout; |
135 | 135 | ||
136 | private static JobEngine m_jobEngine; | 136 | public static JobEngine JobEngine { get; private set; } |
137 | 137 | ||
138 | /// <summary> | 138 | /// <summary> |
139 | /// Is this watchdog active? | 139 | /// Is this watchdog active? |
@@ -175,7 +175,7 @@ namespace OpenSim.Framework.Monitoring | |||
175 | 175 | ||
176 | static Watchdog() | 176 | static Watchdog() |
177 | { | 177 | { |
178 | m_jobEngine = new JobEngine(); | 178 | JobEngine = new JobEngine(); |
179 | m_threads = new Dictionary<int, ThreadWatchdogInfo>(); | 179 | m_threads = new Dictionary<int, ThreadWatchdogInfo>(); |
180 | m_watchdogTimer = new System.Timers.Timer(WATCHDOG_INTERVAL_MS); | 180 | m_watchdogTimer = new System.Timers.Timer(WATCHDOG_INTERVAL_MS); |
181 | m_watchdogTimer.AutoReset = false; | 181 | m_watchdogTimer.AutoReset = false; |
@@ -463,8 +463,8 @@ namespace OpenSim.Framework.Monitoring | |||
463 | return; | 463 | return; |
464 | } | 464 | } |
465 | 465 | ||
466 | if (m_jobEngine.IsRunning) | 466 | if (JobEngine.IsRunning) |
467 | m_jobEngine.QueueRequest(name, callback, obj); | 467 | JobEngine.QueueRequest(name, callback, obj); |
468 | else | 468 | else |
469 | RunInThread(callback, name, obj, log); | 469 | RunInThread(callback, name, obj, log); |
470 | } | 470 | } |