diff options
| author | Martin Ridgers <[email protected]> | 2021-09-16 14:02:24 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-09-16 14:20:52 +0200 |
| commit | e4bc1374be66665d63c755c66c64f5df365fd284 (patch) | |
| tree | cdd98583c156888964ba40b40a4d751bb4e56cfb /zencore/thread.cpp | |
| parent | Removed external linkage from g_MappingLock (diff) | |
| download | zen-e4bc1374be66665d63c755c66c64f5df365fd284.tar.xz zen-e4bc1374be66665d63c755c66c64f5df365fd284.zip | |
Added some lawns to aid orientation within the file
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) { |