From f670277ff5ecd9843f379551265ce2ead05134f2 Mon Sep 17 00:00:00 2001 From: Michael Lutz Date: Sun, 28 Jan 2018 23:45:02 +0100 Subject: Codechange: [OSX] Try to set the thread name for debugger display. --- src/thread/thread_pthread.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/thread') 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 #include +#if defined(__APPLE__) +#include "../os/macosx/macos.h" +#endif + #include "../safeguards.h" /** @@ -69,6 +73,9 @@ private: pthread_setname_np(pthread_self(), self->name); } #endif +#endif +#if defined(__APPLE__) + MacOSSetThreadName(self->name); #endif self->ThreadProc(); pthread_exit(NULL); -- cgit v1.2.3-70-g09d2