aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ThirdParty/SmartThreadPool/SmartThreadPool.cs
diff options
context:
space:
mode:
authorRoger Kirkman2016-05-05 15:21:15 +0100
committerDiva Canto2016-05-12 17:42:42 -0700
commit97a471cb357029e6f93c00ced5a7e6db79d783be (patch)
treed9c879594056c5e169beddc2a5417c8f968e062d /ThirdParty/SmartThreadPool/SmartThreadPool.cs
parentAccording to the SL wiki, estate managers can set parcels for sale. Make it sew. (diff)
downloadopensim-SC-97a471cb357029e6f93c00ced5a7e6db79d783be.zip
opensim-SC-97a471cb357029e6f93c00ced5a7e6db79d783be.tar.gz
opensim-SC-97a471cb357029e6f93c00ced5a7e6db79d783be.tar.bz2
opensim-SC-97a471cb357029e6f93c00ced5a7e6db79d783be.tar.xz
Fix crash due to setting Thread.name after thread start.
Signed-off-by: Diva Canto <diva@metaverseink.com>
Diffstat (limited to '')
-rw-r--r--ThirdParty/SmartThreadPool/SmartThreadPool.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/ThirdParty/SmartThreadPool/SmartThreadPool.cs b/ThirdParty/SmartThreadPool/SmartThreadPool.cs
index 615518e..9043d3a 100644
--- a/ThirdParty/SmartThreadPool/SmartThreadPool.cs
+++ b/ThirdParty/SmartThreadPool/SmartThreadPool.cs
@@ -689,9 +689,10 @@ namespace Amib.Threading
689#if !(_SILVERLIGHT) && !(WINDOWS_PHONE) 689#if !(_SILVERLIGHT) && !(WINDOWS_PHONE)
690 workerThread.Priority = _stpStartInfo.ThreadPriority; 690 workerThread.Priority = _stpStartInfo.ThreadPriority;
691#endif 691#endif
692 workerThread.Start();
693 workerThread.Name = string.Format("STP:{0}:{1}", Name, _threadCounter); 692 workerThread.Name = string.Format("STP:{0}:{1}", Name, _threadCounter);
694 ++_threadCounter; 693 workerThread.Start();
694
695 ++_threadCounter;
695 696
696 // Add it to the dictionary and update its creation time. 697 // Add it to the dictionary and update its creation time.
697 _workerThreads[workerThread] = new ThreadEntry(this); 698 _workerThreads[workerThread] = new ThreadEntry(this);