From 31ffd5450bab751f4df396b7d099367246b2f552 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Tue, 15 Nov 2011 23:34:28 +0000 Subject: Make tracked per scene thread names conform to the majorirty format. This is () --- OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs | 9 ++++++--- OpenSim/Region/Framework/Scenes/Scene.cs | 4 +++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs index 00d7d55..95c727f 100644 --- a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs +++ b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs @@ -65,7 +65,6 @@ namespace OpenSim.Region.CoreModules.World.WorldMap private OpenSim.Framework.BlockingQueue requests = new OpenSim.Framework.BlockingQueue(); - //private IConfig m_config; protected Scene m_scene; private List cachedMapBlocks = new List(); private int cachedTime = 0; @@ -348,7 +347,11 @@ namespace OpenSim.Region.CoreModules.World.WorldMap // m_log.Debug("[WORLD MAP]: Starting remote MapItem request thread"); - Watchdog.StartThread(process, "MapItemRequestThread", ThreadPriority.BelowNormal, true); + Watchdog.StartThread( + process, + string.Format("MapItemRequestThread ({0})", m_scene.RegionInfo.RegionName), + ThreadPriority.BelowNormal, + true); } /// @@ -357,7 +360,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap private void StopThread() { MapRequestState st = new MapRequestState(); - st.agentID=STOP_UUID; + st.agentID = STOP_UUID; st.EstateID=0; st.flags=0; st.godlike=false; diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index fb4b545..c1cbbd4 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -1145,7 +1145,9 @@ namespace OpenSim.Region.Framework.Scenes } m_lastUpdate = Util.EnvironmentTickCount(); - HeartbeatThread = Watchdog.StartThread(Heartbeat, "Heartbeat for region " + RegionInfo.RegionName, ThreadPriority.Normal, false); + HeartbeatThread + = Watchdog.StartThread( + Heartbeat, string.Format("Heartbeat ({0})", RegionInfo.RegionName), ThreadPriority.Normal, false); } /// -- cgit v1.1