diff options
Diffstat (limited to 'zencore/thread.cpp')
| -rw-r--r-- | zencore/thread.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp index 6d17e6968..9e35e5d57 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -88,8 +88,12 @@ SetCurrentThreadName([[maybe_unused]] std::string_view ThreadName) SetNameInternal(GetCurrentThreadId(), ThreadNameZ.c_str()); #else std::string ThreadNameZ{ThreadName}; +#if ZEN_PLATFORM_MAC + pthread_setname_np(ThreadNameZ.c_str()); +#else pthread_setname_np(pthread_self(), ThreadNameZ.c_str()); #endif +#endif } // namespace zen void |