mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
make BlockingQueue.Dequeue timeouts more coerent (just less than watchdog timeout)
This commit is contained in:
@@ -716,12 +716,11 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
Watchdog.UpdateThread();
|
||||
|
||||
av = null;
|
||||
st = null;
|
||||
|
||||
st = requests.Dequeue(4900); // timeout to make watchdog happy
|
||||
st = requests.Dequeue(4500);
|
||||
Watchdog.UpdateThread();
|
||||
|
||||
if (st == null || st.agentID == UUID.Zero)
|
||||
continue;
|
||||
@@ -1152,10 +1151,11 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
||||
{
|
||||
while(!m_mapBlockRequestEvent.WaitOne(4900))
|
||||
{
|
||||
Watchdog.UpdateThread();
|
||||
if(m_scene == null)
|
||||
return;
|
||||
}
|
||||
|
||||
Watchdog.UpdateThread();
|
||||
lock (m_mapBlockRequestEvent)
|
||||
{
|
||||
int total = 0;
|
||||
|
||||
Reference in New Issue
Block a user