diff options
Diffstat (limited to 'zencore/thread.cpp')
| -rw-r--r-- | zencore/thread.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp index 598466bb4..620ea3bff 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -54,6 +54,8 @@ RwLock::ReleaseExclusive() #endif } +////////////////////////////////////////////////////////////////////////// + Event::Event() { m_EventHandle = CreateEvent(nullptr, true, false, nullptr); @@ -93,6 +95,8 @@ Event::Wait(int TimeoutMs) return (Result == WAIT_OBJECT_0); } +////////////////////////////////////////////////////////////////////////// + NamedEvent::NamedEvent(std::u8string_view EventName) : Event(nullptr) { using namespace std::literals; @@ -160,6 +164,8 @@ NamedMutex::Exists(std::string_view MutexName) return true; } +////////////////////////////////////////////////////////////////////////// + ProcessHandle::ProcessHandle() = default; void @@ -255,6 +261,8 @@ ProcessHandle::Wait(int TimeoutMs) return false; } +////////////////////////////////////////////////////////////////////////// + bool IsProcessRunning(int pid) { |