aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/BlockingQueue.cs
diff options
context:
space:
mode:
authorlbsa712008-01-03 12:55:23 +0000
committerlbsa712008-01-03 12:55:23 +0000
commitb95efbb689513888ed5803f984ee0210019f2126 (patch)
treeb02b92a36aa24182c91fbc5deff77f769b03a83c /OpenSim/Framework/BlockingQueue.cs
parentPacket recycling has been temporarily disabled to avoid the performance probl... (diff)
downloadopensim-SC_OLD-b95efbb689513888ed5803f984ee0210019f2126.zip
opensim-SC_OLD-b95efbb689513888ed5803f984ee0210019f2126.tar.gz
opensim-SC_OLD-b95efbb689513888ed5803f984ee0210019f2126.tar.bz2
opensim-SC_OLD-b95efbb689513888ed5803f984ee0210019f2126.tar.xz
* Added lock to Contains to avoid enumeration exceptions
Diffstat (limited to 'OpenSim/Framework/BlockingQueue.cs')
-rw-r--r--OpenSim/Framework/BlockingQueue.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Framework/BlockingQueue.cs b/OpenSim/Framework/BlockingQueue.cs
index 3ff3dac..dd6d866 100644
--- a/OpenSim/Framework/BlockingQueue.cs
+++ b/OpenSim/Framework/BlockingQueue.cs
@@ -59,7 +59,10 @@ namespace OpenSim.Framework
59 59
60 public bool Contains(T item) 60 public bool Contains(T item)
61 { 61 {
62 return m_queue.Contains(item); 62 lock (m_queueSync)
63 {
64 return m_queue.Contains(item);
65 }
63 } 66 }
64 } 67 }
65} \ No newline at end of file 68} \ No newline at end of file