mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 07:25:51 +00:00
Use a thunk to name the aux thread.
This commit is contained in:
@@ -90,6 +90,12 @@ void sigIntHandler(int)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static void runAux(boost::asio::io_service& svc)
|
||||||
|
{
|
||||||
|
NameThread("aux");
|
||||||
|
svc.run();
|
||||||
|
}
|
||||||
|
|
||||||
void Application::setup()
|
void Application::setup()
|
||||||
{
|
{
|
||||||
mJobQueue.setThreadCount();
|
mJobQueue.setThreadCount();
|
||||||
@@ -117,7 +123,7 @@ void Application::setup()
|
|||||||
LogPartition::setSeverity(lsDEBUG);
|
LogPartition::setSeverity(lsDEBUG);
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::thread(boost::bind(&boost::asio::io_service::run, &mAuxService)).detach();
|
boost::thread(boost::bind(runAux, boost::ref(mAuxService))).detach();
|
||||||
|
|
||||||
if (!theConfig.RUN_STANDALONE)
|
if (!theConfig.RUN_STANDALONE)
|
||||||
mSNTPClient.init(theConfig.SNTP_SERVERS);
|
mSNTPClient.init(theConfig.SNTP_SERVERS);
|
||||||
|
|||||||
Reference in New Issue
Block a user