You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Test for the presence of pthread_getname_np() during cmake time and
only use it if it is available. At least FreeBSD does not have it.
When not available, fall back to (the first 15 chars of) the
executable name, as if pthread_setname_np() has never been called.
* Use std::this_thread::get_id() to retrieve the thread id in a portable
way instead of pthread_threadid_np() or syscall() (none of which is
available on FreeBSD but it has its own pthread_getthreadid_np()).
C++11 is here to help.
* According to pthread_getname_np(3) the thread name length is
restricted to 16 characters, including the terminating null byte.
So reduce our thread_name[] from 17 to 16 chars.
0 commit comments