mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-18 18:15:50 +00:00
Fix Workers thread name
This commit is contained in:
@@ -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
|
||||
//
|
||||
|
||||
@@ -124,7 +124,6 @@ private:
|
||||
|
||||
private:
|
||||
Workers& m_workers;
|
||||
String m_threadName;
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user