diff options
Diffstat (limited to 'src/thread/thread_pthread.cpp')
-rw-r--r-- | src/thread/thread_pthread.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/thread/thread_pthread.cpp b/src/thread/thread_pthread.cpp index 747b8943d..8aed5ee13 100644 --- a/src/thread/thread_pthread.cpp +++ b/src/thread/thread_pthread.cpp @@ -14,6 +14,10 @@ #include <pthread.h> #include <errno.h> +#if defined(__APPLE__) +#include "../os/macosx/macos.h" +#endif + #include "../safeguards.h" /** @@ -70,6 +74,9 @@ private: } #endif #endif +#if defined(__APPLE__) + MacOSSetThreadName(self->name); +#endif self->ThreadProc(); pthread_exit(NULL); } |