diff options
Diffstat (limited to 'zencore/thread.cpp')
| -rw-r--r-- | zencore/thread.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp index c20d10db3..2abdde067 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -438,6 +438,16 @@ GetCurrentProcessId() #endif } +int +GetCurrentThreadId() +{ +#if ZEN_PLATFORM_WINDOWS + return ::GetCurrentThreadId(); +#else + return int(gettid()); +#endif +} + void Sleep(int ms) { |