mpv/waftools/fragments/glibc_thread_name.c

7 lines
140 B
C

#define _GNU_SOURCE
#include <pthread.h>
int main(int argc, char **argv) {
pthread_setname_np(pthread_self(), "ducks");
return 0;
}