diff options
author | UbitUmarov | 2017-05-26 00:34:04 +0100 |
---|---|---|
committer | UbitUmarov | 2017-05-26 00:34:46 +0100 |
commit | 8d8236cfb245eaa25f81f2840175b8fe676febbd (patch) | |
tree | fbc55a7ad5ac579ae88a8f0b3a4e75d0c156f8cf /OpenSim/Services/Connectors/Asset | |
parent | change wrong watchdog stopped thread check code, and don't log it (diff) | |
download | opensim-SC-8d8236cfb245eaa25f81f2840175b8fe676febbd.zip opensim-SC-8d8236cfb245eaa25f81f2840175b8fe676febbd.tar.gz opensim-SC-8d8236cfb245eaa25f81f2840175b8fe676febbd.tar.bz2 opensim-SC-8d8236cfb245eaa25f81f2840175b8fe676febbd.tar.xz |
missing file change.. actually use watchdog threads on assetsconnector and
avoid null refs on JobEngine
Diffstat (limited to 'OpenSim/Services/Connectors/Asset')
-rw-r--r-- | OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs index 2deb2d1..7e81be7 100644 --- a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs +++ b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs | |||
@@ -34,7 +34,7 @@ using System.Reflection; | |||
34 | using System.Timers; | 34 | using System.Timers; |
35 | using Nini.Config; | 35 | using Nini.Config; |
36 | using OpenSim.Framework; | 36 | using OpenSim.Framework; |
37 | using OpenSim.Framework.Console; | 37 | using OpenSim.Framework.Monitoring; |
38 | using OpenSim.Services.Interfaces; | 38 | using OpenSim.Services.Interfaces; |
39 | using OpenMetaverse; | 39 | using OpenMetaverse; |
40 | 40 | ||
@@ -135,7 +135,11 @@ namespace OpenSim.Services.Connectors | |||
135 | 135 | ||
136 | for (int i = 0 ; i < 2 ; i++) | 136 | for (int i = 0 ; i < 2 ; i++) |
137 | { | 137 | { |
138 | Util.FireAndForget(delegate { AssetRequestProcessor();}); | 138 | m_fetchThreads[i] = WorkManager.StartThread(AssetRequestProcessor, |
139 | String.Format("GetTextureWorker{0}", i), | ||
140 | ThreadPriority.Normal, | ||
141 | true, | ||
142 | false); | ||
139 | } | 143 | } |
140 | } | 144 | } |
141 | 145 | ||
@@ -357,7 +361,8 @@ namespace OpenSim.Services.Connectors | |||
357 | 361 | ||
358 | while (true) | 362 | while (true) |
359 | { | 363 | { |
360 | r = m_requestQueue.Dequeue(2000); | 364 | r = m_requestQueue.Dequeue(4500); |
365 | Watchdog.UpdateThread(); | ||
361 | if(r== null) | 366 | if(r== null) |
362 | continue; | 367 | continue; |
363 | string uri = r.uri; | 368 | string uri = r.uri; |