Use a thunk to name the aux thread.

This commit is contained in:
JoelKatz
2013-03-20 06:44:00 -07:00
parent 03e7a0ce40
commit 017594950b

View File

@@ -90,6 +90,12 @@ void sigIntHandler(int)
}
#endif
static void runAux(boost::asio::io_service& svc)
{
NameThread("aux");
svc.run();
}
void Application::setup()
{
mJobQueue.setThreadCount();
@@ -117,7 +123,7 @@ void Application::setup()
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)
mSNTPClient.init(theConfig.SNTP_SERVERS);