summaryrefslogtreecommitdiff
path: root/src/thread/thread_pthread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/thread_pthread.cpp')
-rw-r--r--src/thread/thread_pthread.cpp7
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);
}