Use pthread_setname_np (Linux, GDB)

This commit is contained in:
Nekotekina 2018-03-11 19:30:44 +03:00
parent 4b1c052030
commit ac82ecf387
1 changed files with 4 additions and 0 deletions

View File

@ -1639,6 +1639,10 @@ void thread_ctrl::initialize()
}
}
#endif
#ifndef _WIN32
pthread_setname_np(pthread_self(), m_name.substr(0, 15).c_str());
#endif
}
void thread_ctrl::finalize(std::exception_ptr eptr) noexcept