Lock m_syncRoot on DoubleQueue.Count. This is not documented as a thread-safe operation

0.8.0.3
Justin Clark-Casey (justincc) 2014-03-18 19:54:07 +00:00
parent ae56b946cf
commit c605c7a7b7
1 changed files with 5 additions and 1 deletions

View File

@ -2304,7 +2304,11 @@ namespace OpenSim.Framework
public virtual int Count
{
get { return m_highQueue.Count + m_lowQueue.Count; }
get
{
lock (m_syncRoot)
return m_highQueue.Count + m_lowQueue.Count;
}
}
public virtual void Enqueue(T data)