From e4bc1374be66665d63c755c66c64f5df365fd284 Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Thu, 16 Sep 2021 14:02:24 +0200 Subject: Added some lawns to aid orientation within the file --- zencore/thread.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'zencore/thread.cpp') 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) { -- cgit v1.2.3