diff options
author | BlueWall | 2014-09-17 20:03:54 -0400 |
---|---|---|
committer | BlueWall | 2014-09-17 20:03:54 -0400 |
commit | 96a24491222e29ba8d615d9ffaf63e72742a9cc7 (patch) | |
tree | eddde1cac95af0c9ef1eec67f623ead3d49afc65 /ThirdParty/SmartThreadPool/SmartThreadPool.cs | |
parent | Add eeyore to contributors (diff) | |
download | opensim-SC-96a24491222e29ba8d615d9ffaf63e72742a9cc7.zip opensim-SC-96a24491222e29ba8d615d9ffaf63e72742a9cc7.tar.gz opensim-SC-96a24491222e29ba8d615d9ffaf63e72742a9cc7.tar.bz2 opensim-SC-96a24491222e29ba8d615d9ffaf63e72742a9cc7.tar.xz |
Undo "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.""
Fix for break in next commit
This reverts commit 376fab140227e92dbd841436509a97b87c9e7792.
Diffstat (limited to 'ThirdParty/SmartThreadPool/SmartThreadPool.cs')
-rw-r--r-- | ThirdParty/SmartThreadPool/SmartThreadPool.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ThirdParty/SmartThreadPool/SmartThreadPool.cs b/ThirdParty/SmartThreadPool/SmartThreadPool.cs index a4f4ce5..615518e 100644 --- a/ThirdParty/SmartThreadPool/SmartThreadPool.cs +++ b/ThirdParty/SmartThreadPool/SmartThreadPool.cs | |||
@@ -677,7 +677,6 @@ 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; | ||
681 | workerThread.IsBackground = _stpStartInfo.AreThreadsBackground; | 680 | workerThread.IsBackground = _stpStartInfo.AreThreadsBackground; |
682 | 681 | ||
683 | #if !(_SILVERLIGHT) && !(_WINDOWS_CE) && !(WINDOWS_PHONE) | 682 | #if !(_SILVERLIGHT) && !(_WINDOWS_CE) && !(WINDOWS_PHONE) |
@@ -691,6 +690,7 @@ namespace Amib.Threading | |||
691 | workerThread.Priority = _stpStartInfo.ThreadPriority; | 690 | workerThread.Priority = _stpStartInfo.ThreadPriority; |
692 | #endif | 691 | #endif |
693 | workerThread.Start(); | 692 | 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. |