Lock m_syncRoot on DoubleQueue.Count. This is not documented as a thread-safe operation
parent
ae56b946cf
commit
c605c7a7b7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue