diff options
| author | Gavin Andresen <[email protected]> | 2012-07-16 20:57:26 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2012-07-16 20:57:26 -0400 |
| commit | 92f6fb4cfa8ac18023072a6e76f51b9f1a249f96 (patch) | |
| tree | aeacb3265aa9fe02f78f1fa8a1569c68d7073fd9 /src/util.cpp | |
| parent | Give the GUI-IPC thread a name as well (diff) | |
| download | discoin-92f6fb4cfa8ac18023072a6e76f51b9f1a249f96.tar.xz discoin-92f6fb4cfa8ac18023072a6e76f51b9f1a249f96.zip | |
Teach RenameThread to work on OSX
Diffstat (limited to 'src/util.cpp')
| -rw-r--r-- | src/util.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp index a4a71a127..963d58cd8 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1287,6 +1287,8 @@ void RenameThread(const char* name) // on FreeBSD or OpenBSD first. When verified the '0 &&' part can be // removed. pthread_set_name_np(pthread_self(), name); +#elif defined(MAC_OSX) + pthread_setname_np(name); #else // Prevent warnings for unused parameters... (void)name; |