Dbg:Threading: prefix thread names with "smo:" so they group
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include <boostAsioLinkageFix.h>
|
||||
#include <unistd.h>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <boost/asio/io_service.hpp>
|
||||
@@ -45,7 +46,8 @@ const std::shared_ptr<ComponentThread> ComponentThread::getSelf(void)
|
||||
|
||||
void MindThread::main(MindThread& self)
|
||||
{
|
||||
pthread_setname_np(pthread_self(), self.name.c_str());
|
||||
std::string threadName = "smo:" + self.name;
|
||||
pthread_setname_np(pthread_self(), threadName.c_str());
|
||||
|
||||
if (OptionParser::getOptions().verbose)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user