diff options
Diffstat (limited to 'waftools/fragments/glibc_thread_name.c')
-rw-r--r-- | waftools/fragments/glibc_thread_name.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/waftools/fragments/glibc_thread_name.c b/waftools/fragments/glibc_thread_name.c new file mode 100644 index 0000000000..b63889dc80 --- /dev/null +++ b/waftools/fragments/glibc_thread_name.c @@ -0,0 +1,6 @@ +#define _GNU_SOURCE +#include <pthread.h> +int main(int argc, char **argv) { + pthread_setname_np(pthread_self(), "ducks"); + return 0; +} |