Dbg:Threading: prefix thread names with "smo:" so they group
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include <config.h>
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <exception>
|
||||
#include <opts.h>
|
||||
#include <typeinfo>
|
||||
@@ -66,7 +67,8 @@ void marionetteInitializeReqCb(bool success)
|
||||
|
||||
void MarionetteThread::main(MarionetteThread& self)
|
||||
{
|
||||
pthread_setname_np(pthread_self(), self.name.c_str());
|
||||
std::string threadName = "smo:" + self.name;
|
||||
pthread_setname_np(pthread_self(), threadName.c_str());
|
||||
// Wait for CRT's main() to post us the command line args.
|
||||
std::cout << __func__ << ": Waiting for command line JOLT" << std::endl;
|
||||
self.getIoService().run();
|
||||
|
||||
Reference in New Issue
Block a user