Dbg:Threading: use pthread_setname_np for debugging ease
This commit is contained in:
@@ -45,6 +45,7 @@ const std::shared_ptr<ComponentThread> ComponentThread::getSelf(void)
|
||||
|
||||
void MindThread::main(MindThread& self)
|
||||
{
|
||||
pthread_setname_np(pthread_self(), self.name.c_str());
|
||||
|
||||
if (OptionParser::getOptions().verbose)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user