Restore OSX 10.5 compatibility (do not use pthread_setname_np)
This commit is contained in:
parent
b4b7ed1915
commit
cd58f05894
1 changed files with 5 additions and 2 deletions
|
@ -1287,8 +1287,11 @@ void RenameThread(const char* name)
|
||||||
// on FreeBSD or OpenBSD first. When verified the '0 &&' part can be
|
// on FreeBSD or OpenBSD first. When verified the '0 &&' part can be
|
||||||
// removed.
|
// removed.
|
||||||
pthread_set_name_np(pthread_self(), name);
|
pthread_set_name_np(pthread_self(), name);
|
||||||
#elif defined(MAC_OSX)
|
|
||||||
pthread_setname_np(name);
|
// This is XCode 10.6-and-later; bring back if we drop 10.5 support:
|
||||||
|
// #elif defined(MAC_OSX)
|
||||||
|
// pthread_setname_np(name);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
// Prevent warnings for unused parameters...
|
// Prevent warnings for unused parameters...
|
||||||
(void)name;
|
(void)name;
|
||||||
|
|
Loading…
Reference in a new issue