aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
Diffstat (limited to '')
-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>