diff options
| author | Martin Ridgers <[email protected]> | 2021-11-11 12:53:05 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-11-11 13:14:23 +0100 |
| commit | d312856e0cb89be73f16e328858eb5ab04aeec02 (patch) | |
| tree | 5275db2837c224f0f06762c64bcb77d43395def6 /zenutil/include | |
| parent | Check if an event is already set before waiting on it (diff) | |
| download | zen-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.h | 4 |
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; |