Fix Workers thread name

This commit is contained in:
Vinnie Falco
2013-11-22 15:50:22 -08:00
parent 21918922f4
commit 5500701661
2 changed files with 2 additions and 3 deletions

View File

@@ -202,7 +202,7 @@ void Workers::Worker::run ()
}
// Put the name back in case the callback changed it
Thread::setCurrentThreadName (m_threadName);
Thread::setCurrentThreadName (Thread::getThreadName());
}
// Any worker that goes into the paused list must
@@ -217,7 +217,7 @@ void Workers::Worker::run ()
if (--m_workers.m_activeCount == 0)
m_workers.m_allPaused.signal ();
Thread::setCurrentThreadName (m_threadName + " (paused)");
Thread::setCurrentThreadName ("(" + getThreadName() + ")");
// [1] We will be here when the paused list is popped
//

View File

@@ -124,7 +124,6 @@ private:
private:
Workers& m_workers;
String m_threadName;
};
private: