Browse Source

Teach RenameThread to work on OSX

0.8
Gavin Andresen 12 years ago
parent
commit
92f6fb4cfa
  1. 2
      src/util.cpp

2
src/util.cpp

@ -1287,6 +1287,8 @@ 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);
#else #else
// Prevent warnings for unused parameters... // Prevent warnings for unused parameters...
(void)name; (void)name;

Loading…
Cancel
Save