mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Lock m_syncRoot on DoubleQueue.Count. This is not documented as a thread-safe operation
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user