aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread/Name.hxx (follow)
Commit message (Collapse)AuthorAgeFilesLines
* thread/Name: include stdio.h if HAVE_PRCTLMax Kellermann2015-01-211-1/+4
| | | | | Caused a build failure with uClibc because snprintf() was not available.
* thread/Name: disable pthread_setname_np() on NetBSDMax Kellermann2015-01-061-2/+6
| | | | | | | NetBSD's pthread_setname_np() prototype is incompatible with the rest of the world, and it requires to pass the string argument as a non-const pointer. Instead of working around this misdesign, I hereby disable the feature on NetBSD.
* thread/Name: enable FormatThreadName() with prctl()Max Kellermann2015-01-061-1/+5
| | | | | | Add macro HAVE_THREAD_NAME which is set when any method to set the thread name is available. Use that macro in FormatThreadName() instead of just checking for HAVE_PTHREAD_SETNAME_NP.
* thread/Name: indent preprocessor commandsMax Kellermann2015-01-061-3/+3
|
* thread/Name: fall back to prctl()Max Kellermann2014-03-011-0/+4
|
* thread/Name: implementation for Mac OS XMax Kellermann2014-01-281-0/+4
| | | | pthread_setname_np() doesn't have the "thread" argument on OS X.
* thread/Name: set thread namesMax Kellermann2014-01-231-0/+51
For debugging.