Truly initialize thread name
This commit is contained in:
@ -187,7 +187,8 @@ void logger_set_name(const char *restrict format, ...) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// set thread name
|
// set thread name
|
||||||
pthread_setname_np(pthread_self(), global_name);
|
// warning: max length is 16 (incl. terminating null byte)
|
||||||
|
pthread_setname_np(pthread_self(), ptr);
|
||||||
|
|
||||||
// cleanup
|
// cleanup
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
Reference in New Issue
Block a user