diff options
Diffstat (limited to 'zen/thread.h')
-rw-r--r-- | zen/thread.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zen/thread.h b/zen/thread.h index ac94da6a..5bb02a0e 100644 --- a/zen/thread.h +++ b/zen/thread.h @@ -460,9 +460,9 @@ std::uint64_t getThreadId() return ::GetCurrentThreadId(); //no-fail #elif defined ZEN_LINUX - //obviously "gettid()" is not available on Ubuntu/Debian/Suse => use the OpenSSL approach: - static_assert(sizeof(std::uint64_t) >= sizeof(void*), ""); - return reinterpret_cast<std::uint64_t>(static_cast<void*>(&errno)); + //obviously "gettid()" is not available on Ubuntu/Debian/Suse => use the OpenSSL approach: + static_assert(sizeof(std::uint64_t) >= sizeof(void*), ""); + return reinterpret_cast<std::uint64_t>(static_cast<void*>(&errno)); #elif defined ZEN_MAC uint64_t tid = 0; |