Revert "Revert "Do the same trick that dahlia did for Dequeue(timeout)""
This reverts commit 5495df7443
.
TeleportWork
parent
552b85d33d
commit
a22a4db5ce
|
@ -76,9 +76,10 @@ namespace OpenSim.Framework
|
||||||
{
|
{
|
||||||
lock (m_queueSync)
|
lock (m_queueSync)
|
||||||
{
|
{
|
||||||
if (m_queue.Count < 1 && m_pqueue.Count < 1)
|
bool timedout = false;
|
||||||
|
while (m_queue.Count < 1 && m_pqueue.Count < 1 && !timedout)
|
||||||
{
|
{
|
||||||
Monitor.Wait(m_queueSync, msTimeout);
|
timedout = Monitor.Wait(m_queueSync, msTimeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_pqueue.Count > 0)
|
if (m_pqueue.Count > 0)
|
||||||
|
|
Loading…
Reference in New Issue