Browse Source

Merge #5366: No longer check osx compatibility in RenameThread

850c570 No longer check osx compatibility in RenameThread (Michael Ford)
0.13
Wladimir J. van der Laan 10 years ago
parent
commit
47a79bb880
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 7
      src/util.cpp

7
src/util.cpp

@ -698,13 +698,8 @@ void RenameThread(const char* name) @@ -698,13 +698,8 @@ void RenameThread(const char* name)
// removed.
pthread_set_name_np(pthread_self(), name);
#elif defined(MAC_OSX) && defined(__MAC_OS_X_VERSION_MAX_ALLOWED)
// pthread_setname_np is XCode 10.6-and-later
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
#elif defined(MAC_OSX)
pthread_setname_np(name);
#endif
#else
// Prevent warnings for unused parameters...
(void)name;

Loading…
Cancel
Save