Playing "Name that thread". Adding names and isbackground=true to all threads so it will be easier to debug.

This commit is contained in:
Tedd Hansen
2008-02-19 12:02:53 +00:00
parent 62f608b152
commit 47c909ca0a
9 changed files with 28 additions and 7 deletions

View File

@@ -143,6 +143,7 @@ namespace OpenSim.Framework.Communications.Cache
m_assetCacheThread = new Thread(new ThreadStart(RunAssetManager));
m_assetCacheThread.Name = "AssetCacheThread";
m_assetCacheThread.IsBackground = true;
m_assetCacheThread.Start();
}

View File

@@ -97,6 +97,7 @@ namespace OpenSim.Framework.Communications.Cache
m_assetRequests = new BlockingQueue<AssetRequest>();
m_localAssetServerThread = new Thread(RunRequests);
m_localAssetServerThread.Name = "LocalAssetServerThread";
m_localAssetServerThread.IsBackground = true;
m_localAssetServerThread.Start();
}

View File

@@ -531,6 +531,7 @@ namespace OpenSim.Framework.Servers
m_log.Info("[HTTPD]: Starting up HTTP Server");
m_workerThread = new Thread(new ThreadStart(StartHTTP));
m_workerThread.Name = "HttpThread";
m_workerThread.IsBackground = true;
m_workerThread.Start();
}