From 3d16e8a64e9ef76f407270ef092671a1be7bf346 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Thu, 16 Nov 2023 15:34:25 +0100 Subject: changed posix event implementation to use std::atomic instead of volatile (#547) --- src/zencore/include/zencore/thread.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/zencore/include') diff --git a/src/zencore/include/zencore/thread.h b/src/zencore/include/zencore/thread.h index 9f2671610..47f37c9a3 100644 --- a/src/zencore/include/zencore/thread.h +++ b/src/zencore/include/zencore/thread.h @@ -10,6 +10,8 @@ #include #include +#define ZEN_USE_WINDOWS_EVENTS ZEN_PLATFORM_WINDOWS + namespace zen { void SetCurrentThreadName(std::string_view ThreadName); @@ -107,7 +109,7 @@ public: ZENCORE_API bool Wait(int TimeoutMs = -1); ZENCORE_API void Close(); -#if ZEN_PLATFORM_WINDOWS +#if ZEN_USE_WINDOWS_EVENTS inline void* GetWindowsHandle() { return m_EventHandle; } #endif -- cgit v1.2.3