diff options
author | UbitUmarov | 2017-05-26 00:47:08 +0100 |
---|---|---|
committer | UbitUmarov | 2017-05-26 00:47:08 +0100 |
commit | 7a82c7c5b2a897ba1bd64c2badb71fe93c674246 (patch) | |
tree | 0994496022f8f9a5c770b05feeb7a258c83acf94 /OpenSim/Region | |
parent | missing file change.. actually use watchdog threads on assetsconnector and (diff) | |
download | opensim-SC_OLD-7a82c7c5b2a897ba1bd64c2badb71fe93c674246.zip opensim-SC_OLD-7a82c7c5b2a897ba1bd64c2badb71fe93c674246.tar.gz opensim-SC_OLD-7a82c7c5b2a897ba1bd64c2badb71fe93c674246.tar.bz2 opensim-SC_OLD-7a82c7c5b2a897ba1bd64c2badb71fe93c674246.tar.xz |
make BlockingQueue.Dequeue timeouts more coerent (just less than watchdog timeout)
Diffstat (limited to 'OpenSim/Region')
4 files changed, 9 insertions, 10 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/GetMeshModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/GetMeshModule.cs index 03f0a04..a721454 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/GetMeshModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/GetMeshModule.cs | |||
@@ -204,10 +204,10 @@ namespace OpenSim.Region.ClientStack.Linden | |||
204 | { | 204 | { |
205 | while(true) | 205 | while(true) |
206 | { | 206 | { |
207 | aPollRequest poolreq = m_queue.Dequeue(1000); | 207 | aPollRequest poolreq = m_queue.Dequeue(4500); |
208 | Watchdog.UpdateThread(); | ||
208 | if(m_NumberScenes <= 0) | 209 | if(m_NumberScenes <= 0) |
209 | return; | 210 | return; |
210 | Watchdog.UpdateThread(); | ||
211 | if(poolreq.reqID != UUID.Zero) | 211 | if(poolreq.reqID != UUID.Zero) |
212 | poolreq.thepoll.Process(poolreq); | 212 | poolreq.thepoll.Process(poolreq); |
213 | } | 213 | } |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs index 8ef943c..ce9798b 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs | |||
@@ -415,10 +415,10 @@ namespace OpenSim.Region.ClientStack.Linden | |||
415 | { | 415 | { |
416 | while (true) | 416 | while (true) |
417 | { | 417 | { |
418 | aPollRequest poolreq = m_queue.Dequeue(2000); | 418 | aPollRequest poolreq = m_queue.Dequeue(4500); |
419 | Watchdog.UpdateThread(); | ||
419 | if(m_NumberScenes <= 0) | 420 | if(m_NumberScenes <= 0) |
420 | return; | 421 | return; |
421 | Watchdog.UpdateThread(); | ||
422 | if(poolreq.reqID != UUID.Zero) | 422 | if(poolreq.reqID != UUID.Zero) |
423 | poolreq.thepoll.Process(poolreq); | 423 | poolreq.thepoll.Process(poolreq); |
424 | } | 424 | } |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs index 23ec141..a367426 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs | |||
@@ -443,10 +443,9 @@ namespace OpenSim.Region.ClientStack.Linden | |||
443 | { | 443 | { |
444 | while (true) | 444 | while (true) |
445 | { | 445 | { |
446 | aPollRequest poolreq = m_queue.Dequeue(4500); | ||
446 | Watchdog.UpdateThread(); | 447 | Watchdog.UpdateThread(); |
447 | 448 | ||
448 | aPollRequest poolreq = m_queue.Dequeue(5000); | ||
449 | |||
450 | if (poolreq != null && poolreq.thepoll != null) | 449 | if (poolreq != null && poolreq.thepoll != null) |
451 | { | 450 | { |
452 | try | 451 | try |
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs index 00c8279..03a4d34 100644 --- a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs +++ b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs | |||
@@ -716,12 +716,11 @@ namespace OpenSim.Region.CoreModules.World.WorldMap | |||
716 | { | 716 | { |
717 | while (true) | 717 | while (true) |
718 | { | 718 | { |
719 | Watchdog.UpdateThread(); | ||
720 | |||
721 | av = null; | 719 | av = null; |
722 | st = null; | 720 | st = null; |
723 | 721 | ||
724 | st = requests.Dequeue(4900); // timeout to make watchdog happy | 722 | st = requests.Dequeue(4500); |
723 | Watchdog.UpdateThread(); | ||
725 | 724 | ||
726 | if (st == null || st.agentID == UUID.Zero) | 725 | if (st == null || st.agentID == UUID.Zero) |
727 | continue; | 726 | continue; |
@@ -1152,10 +1151,11 @@ namespace OpenSim.Region.CoreModules.World.WorldMap | |||
1152 | { | 1151 | { |
1153 | while(!m_mapBlockRequestEvent.WaitOne(4900)) | 1152 | while(!m_mapBlockRequestEvent.WaitOne(4900)) |
1154 | { | 1153 | { |
1154 | Watchdog.UpdateThread(); | ||
1155 | if(m_scene == null) | 1155 | if(m_scene == null) |
1156 | return; | 1156 | return; |
1157 | } | 1157 | } |
1158 | 1158 | Watchdog.UpdateThread(); | |
1159 | lock (m_mapBlockRequestEvent) | 1159 | lock (m_mapBlockRequestEvent) |
1160 | { | 1160 | { |
1161 | int total = 0; | 1161 | int total = 0; |