mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +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
|
// 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
|
// Any worker that goes into the paused list must
|
||||||
@@ -217,7 +217,7 @@ void Workers::Worker::run ()
|
|||||||
if (--m_workers.m_activeCount == 0)
|
if (--m_workers.m_activeCount == 0)
|
||||||
m_workers.m_allPaused.signal ();
|
m_workers.m_allPaused.signal ();
|
||||||
|
|
||||||
Thread::setCurrentThreadName (m_threadName + " (paused)");
|
Thread::setCurrentThreadName ("(" + getThreadName() + ")");
|
||||||
|
|
||||||
// [1] We will be here when the paused list is popped
|
// [1] We will be here when the paused list is popped
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -124,7 +124,6 @@ private:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
Workers& m_workers;
|
Workers& m_workers;
|
||||||
String m_threadName;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user