aboutsummaryrefslogtreecommitdiff
path: root/zenutil/include
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-11-11 12:53:05 +0100
committerMartin Ridgers <[email protected]>2021-11-11 13:14:23 +0100
commitd312856e0cb89be73f16e328858eb5ab04aeec02 (patch)
tree5275db2837c224f0f06762c64bcb77d43395def6 /zenutil/include
parentCheck if an event is already set before waiting on it (diff)
downloadzen-d312856e0cb89be73f16e328858eb5ab04aeec02.tar.xz
zen-d312856e0cb89be73f16e328858eb5ab04aeec02.zip
NamedEvent is no longer an Event-type object.
Platforms other than Windows do not really have a named event-like primitive or ones that are close are fallible if a process hard-terminates. Separating from Event more clearly conveys the use of NamedEvent objects; to synchronise two processes.
Diffstat (limited to 'zenutil/include')
-rw-r--r--zenutil/include/zenutil/zenserverprocess.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/zenutil/include/zenutil/zenserverprocess.h b/zenutil/include/zenutil/zenserverprocess.h
index 8a4f9604d..55b9a50cd 100644
--- a/zenutil/include/zenutil/zenserverprocess.h
+++ b/zenutil/include/zenutil/zenserverprocess.h
@@ -67,8 +67,8 @@ struct ZenServerInstance
private:
ZenServerEnvironment& m_Env;
ProcessHandle m_Process;
- Event m_ReadyEvent;
- Event m_ShutdownEvent;
+ NamedEvent m_ReadyEvent;
+ NamedEvent m_ShutdownEvent;
bool m_Terminate = false;
std::filesystem::path m_TestDir;
bool m_MeshEnabled = false;