aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ThirdParty/SmartThreadPool/SmartThreadPool.cs
diff options
context:
space:
mode:
authorBlueWall2014-09-17 18:11:41 -0400
committerBlueWall2014-09-17 18:11:41 -0400
commit376fab140227e92dbd841436509a97b87c9e7792 (patch)
treef9c7151984ed47ad8eac25a72f7bac3fa6ea22ae /ThirdParty/SmartThreadPool/SmartThreadPool.cs
parentSmall changes to threading to send thread names to unmanaged threads. Needs M... (diff)
downloadopensim-SC_OLD-376fab140227e92dbd841436509a97b87c9e7792.zip
opensim-SC_OLD-376fab140227e92dbd841436509a97b87c9e7792.tar.gz
opensim-SC_OLD-376fab140227e92dbd841436509a97b87c9e7792.tar.bz2
opensim-SC_OLD-376fab140227e92dbd841436509a97b87c9e7792.tar.xz
Revert "Small changes to threading to send thread names to unmanaged threads. Needs Mono 3.6+ to see thread names in utilities like top -H . Some formatting of the thread name to fin in the 16 byte limit on Linux. Please test on Windows to see if the work has any adverse effects."
This reverts commit af286d5fcb688e8b64202b6deca4f249e9a2b6b8. Issue with Jenkins builds
Diffstat (limited to 'ThirdParty/SmartThreadPool/SmartThreadPool.cs')
-rw-r--r--ThirdParty/SmartThreadPool/SmartThreadPool.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ThirdParty/SmartThreadPool/SmartThreadPool.cs b/ThirdParty/SmartThreadPool/SmartThreadPool.cs
index 615518e..a4f4ce5 100644
--- a/ThirdParty/SmartThreadPool/SmartThreadPool.cs
+++ b/ThirdParty/SmartThreadPool/SmartThreadPool.cs
@@ -677,6 +677,7 @@ namespace Amib.Threading
677 : new Thread(ProcessQueuedItems); 677 : new Thread(ProcessQueuedItems);
678#endif 678#endif
679 // Configure the new thread and start it 679 // Configure the new thread and start it
680 workerThread.Name = "STP " + Name + " Thread #" + _threadCounter;
680 workerThread.IsBackground = _stpStartInfo.AreThreadsBackground; 681 workerThread.IsBackground = _stpStartInfo.AreThreadsBackground;
681 682
682#if !(_SILVERLIGHT) && !(_WINDOWS_CE) && !(WINDOWS_PHONE) 683#if !(_SILVERLIGHT) && !(_WINDOWS_CE) && !(WINDOWS_PHONE)
@@ -690,7 +691,6 @@ namespace Amib.Threading
690 workerThread.Priority = _stpStartInfo.ThreadPriority; 691 workerThread.Priority = _stpStartInfo.ThreadPriority;
691#endif 692#endif
692 workerThread.Start(); 693 workerThread.Start();
693 workerThread.Name = string.Format("STP:{0}:{1}", Name, _threadCounter);
694 ++_threadCounter; 694 ++_threadCounter;
695 695
696 // Add it to the dictionary and update its creation time. 696 // Add it to the dictionary and update its creation time.