diff options
Diffstat (limited to 'zencore/thread.cpp')
| -rw-r--r-- | zencore/thread.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp index 9e35e5d57..8fe25b528 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -1041,8 +1041,10 @@ GetCurrentThreadId() { #if ZEN_PLATFORM_WINDOWS return ::GetCurrentThreadId(); -#else +#elif ZEN_PLATFORM_LINUX return int(gettid()); +#elif ZEN_PLATFORM_MAC + return int(pthread_mach_thread_np(pthread_self())); #endif } |