Update thread watchdog on GridServiceRequestThread periodically and turn off alarming

Unfortunately, alarm can spuriously go off if the thread blocks for a long time on an empty queue.
cpu-performance
Justin Clark-Casey (justincc) 2013-07-06 00:29:19 +01:00
parent 5dbdd5f8b4
commit 67407024a2
1 changed files with 3 additions and 1 deletions

View File

@ -58,7 +58,7 @@ namespace OpenSim.Region.CoreModules.Framework
"GridServiceRequestThread",
ThreadPriority.BelowNormal,
true,
true);
false);
}
public void AddRegion(Scene scene)
@ -137,6 +137,8 @@ namespace OpenSim.Region.CoreModules.Framework
{
while (true)
{
Watchdog.UpdateThread();
GridRegionRequest request = m_RequestQueue.Dequeue();
GridRegion r = m_scenes[0].GridService.GetRegionByUUID(UUID.Zero, request.regionID);