mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
pthread_setname_np is available with GNU/mingw
This commit is contained in:
parent
b55575d7c6
commit
2d5ac04ae1
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ pthread_set_name (const char* str)
|
||||||
/* copy string and delete it when exiting */
|
/* copy string and delete it when exiting */
|
||||||
thread_name.set (strdup (str)); // leaks
|
thread_name.set (strdup (str)); // leaks
|
||||||
|
|
||||||
#if !defined PLATFORM_WINDOWS && defined _GNU_SOURCE
|
#if !defined PTW32_VERSION && defined _GNU_SOURCE
|
||||||
/* set public thread name, up to 16 chars */
|
/* set public thread name, up to 16 chars */
|
||||||
char ptn[16];
|
char ptn[16];
|
||||||
memset (ptn, 0, 16);
|
memset (ptn, 0, 16);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue