Fix some missing thread names in debug info.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6076 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
c09fef6c4d
commit
b4127e58cc
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ void *Sys_CreateThread(char *name, int (*func)(void *), void *args, int priority
|
|||
thread = NULL;
|
||||
}
|
||||
pthread_attr_destroy(&attr);
|
||||
#if defined(DEBUG) && defined(__USE_GNU) && defined(__GLIBC_PREREQ)
|
||||
#if defined(_DEBUG) && defined(__USE_GNU) && defined(__GLIBC_PREREQ)
|
||||
#if __GLIBC_PREREQ(2,12)
|
||||
pthread_setname_np(*thread, name);
|
||||
#endif
|
||||
|
@ -123,7 +123,7 @@ void *Sys_CreateThread(char *name, int (*func)(void *), void *args, int priority
|
|||
}
|
||||
pthread_attr_destroy(&attr);
|
||||
|
||||
#if defined(DEBUG) && defined(__USE_GNU) && defined(__GLIBC_PREREQ)
|
||||
#if defined(_DEBUG) && defined(__USE_GNU) && defined(__GLIBC_PREREQ)
|
||||
#if __GLIBC_PREREQ(2,12)
|
||||
pthread_setname_np(*thread, name);
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue