aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-01-19 19:49:06 +0000
committerJustin Clark-Casey (justincc)2012-01-19 19:49:06 +0000
commitc92a9a664035ad4c36a0ac905751d105770dca51 (patch)
tree47b9d9cfaf3fb1a0646323099add0e73b5dea627 /OpenSim/Region/ClientStack
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-c92a9a664035ad4c36a0ac905751d105770dca51.zip
opensim-SC_OLD-c92a9a664035ad4c36a0ac905751d105770dca51.tar.gz
opensim-SC_OLD-c92a9a664035ad4c36a0ac905751d105770dca51.tar.bz2
opensim-SC_OLD-c92a9a664035ad4c36a0ac905751d105770dca51.tar.xz
Add "image queues clear <first-name> <last-name>" console command
This allows a way to manually clear pending image queue requests for debug purposes
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLImageManager.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLImageManager.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLImageManager.cs
index 30d3712..7bfb844 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLImageManager.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLImageManager.cs
@@ -246,6 +246,26 @@ namespace OpenSim.Region.ClientStack.LindenUDP
246 } 246 }
247 247
248 /// <summary> 248 /// <summary>
249 /// Clear the image queue.
250 /// </summary>
251 /// <returns>The number of requests cleared.</returns>
252 public int ClearImageQueue()
253 {
254 int requestsDeleted;
255
256 lock (m_priorityQueue)
257 {
258 requestsDeleted = m_priorityQueue.Count;
259
260 // Surprisingly, there doesn't seem to be a clear method at this time.
261 while (!m_priorityQueue.IsEmpty)
262 m_priorityQueue.DeleteMax();
263 }
264
265 return requestsDeleted;
266 }
267
268 /// <summary>
249 /// Returns an array containing all the images in the queue. 269 /// Returns an array containing all the images in the queue.
250 /// </summary> 270 /// </summary>
251 /// <returns></returns> 271 /// <returns></returns>