aboutsummaryrefslogtreecommitdiff
path: root/zencore/thread.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-11-09 16:40:32 +0100
committerMartin Ridgers <[email protected]>2021-11-09 16:40:32 +0100
commit6a241991f830db73444ff8acc2304112a50b36ee (patch)
tree840e0f4bd2370f351aeddcffdba24112ac1259ef /zencore/thread.cpp
parentMoved the use of INVALID_HANDLE_VALUE out of ProcessHandle::Reset() (diff)
downloadzen-6a241991f830db73444ff8acc2304112a50b36ee.tar.xz
zen-6a241991f830db73444ff8acc2304112a50b36ee.zip
Only implement ProcessHandle::Initialize(void*) on Windows
Diffstat (limited to 'zencore/thread.cpp')
-rw-r--r--zencore/thread.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp
index 60bd73994..423187218 100644
--- a/zencore/thread.cpp
+++ b/zencore/thread.cpp
@@ -292,10 +292,9 @@ NamedMutex::Exists(std::string_view MutexName)
//////////////////////////////////////////////////////////////////////////
-#if ZEN_PLATFORM_WINDOWS
-
ProcessHandle::ProcessHandle() = default;
+#if ZEN_PLATFORM_WINDOWS
void
ProcessHandle::Initialize(void* ProcessHandle)
{
@@ -310,6 +309,7 @@ ProcessHandle::Initialize(void* ProcessHandle)
m_ProcessHandle = ProcessHandle;
m_Pid = GetProcessId(m_ProcessHandle);
}
+#endif // ZEN_PLATFORM_WINDOWS
ProcessHandle::~ProcessHandle()
{
@@ -397,8 +397,6 @@ ProcessHandle::Wait(int TimeoutMs)
return false;
}
-#endif // ZEN_PLATFORM_WINDOWS
-
//////////////////////////////////////////////////////////////////////////
#if ZEN_PLATFORM_WINDOWS