Fix crash due to setting Thread.name after thread start.
Signed-off-by: Diva Canto <diva@metaverseink.com>
This commit is contained in:
committed by
Diva Canto
parent
1e44aba620
commit
97a471cb35
@@ -689,9 +689,10 @@ namespace Amib.Threading
|
||||
#if !(_SILVERLIGHT) && !(WINDOWS_PHONE)
|
||||
workerThread.Priority = _stpStartInfo.ThreadPriority;
|
||||
#endif
|
||||
workerThread.Start();
|
||||
workerThread.Name = string.Format("STP:{0}:{1}", Name, _threadCounter);
|
||||
++_threadCounter;
|
||||
workerThread.Start();
|
||||
|
||||
++_threadCounter;
|
||||
|
||||
// Add it to the dictionary and update its creation time.
|
||||
_workerThreads[workerThread] = new ThreadEntry(this);
|
||||
|
||||
Reference in New Issue
Block a user