aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/Caps
diff options
context:
space:
mode:
authorUbitUmarov2015-12-09 16:12:21 +0000
committerUbitUmarov2015-12-09 16:12:21 +0000
commiteccec663593076b7dbb1995f935bc63f7c496c24 (patch)
tree00dabdb4e86720c24ea8ceac65a5803cfcf77425 /OpenSim/Region/ClientStack/Linden/Caps
parentadd some missing GC.RemoveMemoryPressure() (diff)
downloadopensim-SC-eccec663593076b7dbb1995f935bc63f7c496c24.zip
opensim-SC-eccec663593076b7dbb1995f935bc63f7c496c24.tar.gz
opensim-SC-eccec663593076b7dbb1995f935bc63f7c496c24.tar.bz2
opensim-SC-eccec663593076b7dbb1995f935bc63f7c496c24.tar.xz
fix the queue type in use
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/Caps')
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs15
1 files changed, 8 insertions, 7 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs
index 83f60c7..ba4fb76 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs
@@ -99,8 +99,8 @@ namespace OpenSim.Region.ClientStack.Linden
99 99
100 private static Thread[] m_workerThreads = null; 100 private static Thread[] m_workerThreads = null;
101 101
102 private static DoubleQueue<aPollRequest> m_queue = 102 private static OpenSim.Framework.BlockingQueue<aPollRequest> m_queue =
103 new DoubleQueue<aPollRequest>(); 103 new OpenSim.Framework.BlockingQueue<aPollRequest>();
104 104
105 private static int m_NumberScenes = 0; 105 private static int m_NumberScenes = 0;
106 106
@@ -181,7 +181,7 @@ namespace OpenSim.Region.ClientStack.Linden
181 "httpfetch", 181 "httpfetch",
182 StatType.Pull, 182 StatType.Pull,
183 MeasuresOfInterest.AverageChangeOverTime, 183 MeasuresOfInterest.AverageChangeOverTime,
184 stat => { stat.Value = m_queue.Count; }, 184 stat => { stat.Value = m_queue.Count(); },
185 StatVerbosity.Debug); 185 StatVerbosity.Debug);
186 186
187 StatsManager.RegisterStat(s_processedRequestsStat); 187 StatsManager.RegisterStat(s_processedRequestsStat);
@@ -332,9 +332,9 @@ namespace OpenSim.Region.ClientStack.Linden
332 } 332 }
333 333
334 if (highPriority) 334 if (highPriority)
335 m_queue.EnqueueHigh(reqinfo); 335 m_queue.PriorityEnqueue(reqinfo);
336 else 336 else
337 m_queue.EnqueueLow(reqinfo); 337 m_queue.Enqueue(reqinfo);
338 }; 338 };
339 339
340 NoEvents = (x, y) => 340 NoEvents = (x, y) =>
@@ -381,7 +381,8 @@ namespace OpenSim.Region.ClientStack.Linden
381 m_log.WarnFormat("[FETCH INVENTORY DESCENDENTS2 MODULE]: Caught in the act of loosing responses! Please report this on mantis #7054"); 381 m_log.WarnFormat("[FETCH INVENTORY DESCENDENTS2 MODULE]: Caught in the act of loosing responses! Please report this on mantis #7054");
382 responses[requestID] = response; 382 responses[requestID] = response;
383 } 383 }
384 384 requestinfo.folders.Clear();
385 requestinfo.request.Clear();
385 WebFetchInvDescModule.ProcessedRequestsCount++; 386 WebFetchInvDescModule.ProcessedRequestsCount++;
386 } 387 }
387 } 388 }
@@ -444,7 +445,7 @@ namespace OpenSim.Region.ClientStack.Linden
444 { 445 {
445 Watchdog.UpdateThread(); 446 Watchdog.UpdateThread();
446 447
447 aPollRequest poolreq = m_queue.Dequeue(); 448 aPollRequest poolreq = m_queue.Dequeue(5000);
448 449
449 if (poolreq != null && poolreq.thepoll != null) 450 if (poolreq != null && poolreq.thepoll != null)
450 { 451 {