From 50d5945d66ff95a7f417270240c7b9077ca556d0 Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Wed, 22 Sep 2021 21:12:09 +0200 Subject: Compile out Event methods on non-Windows platforms for now --- zencore/thread.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zencore/thread.cpp') diff --git a/zencore/thread.cpp b/zencore/thread.cpp index ded180337..30af79121 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -40,6 +40,8 @@ RwLock::ReleaseExclusive() ////////////////////////////////////////////////////////////////////////// +#if ZEN_PLATFORM_WINDOWS + Event::Event() { m_EventHandle = CreateEvent(nullptr, true, false, nullptr); @@ -155,6 +157,8 @@ NamedMutex::Exists(std::string_view MutexName) return true; } +#endif // ZEN_PLATFORM_WINDOWS + ////////////////////////////////////////////////////////////////////////// ProcessHandle::ProcessHandle() = default; -- cgit v1.2.3