diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /util/system/event.cpp | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'util/system/event.cpp')
-rw-r--r-- | util/system/event.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/system/event.cpp b/util/system/event.cpp index 79b3cdb291..6f70a37e05 100644 --- a/util/system/event.cpp +++ b/util/system/event.cpp @@ -19,19 +19,19 @@ public: cond = CreateEvent(nullptr, rmode == rManual ? true : false, false, nullptr); } - inline ~TEvImpl() { + inline ~TEvImpl() { CloseHandle(cond); } - inline void Reset() noexcept { + inline void Reset() noexcept { ResetEvent(cond); } - inline void Signal() noexcept { + inline void Signal() noexcept { SetEvent(cond); } - inline bool WaitD(TInstant deadLine) noexcept { + inline bool WaitD(TInstant deadLine) noexcept { if (deadLine == TInstant::Max()) { return WaitForSingleObject(cond, INFINITE) == WAIT_OBJECT_0; } @@ -51,7 +51,7 @@ public: { } - inline void Signal() noexcept { + inline void Signal() noexcept { if (Manual && AtomicGet(Signaled)) { return; // shortcut } @@ -67,11 +67,11 @@ public: } } - inline void Reset() noexcept { + inline void Reset() noexcept { AtomicSet(Signaled, 0); } - inline bool WaitD(TInstant deadLine) noexcept { + inline bool WaitD(TInstant deadLine) noexcept { if (Manual && AtomicGet(Signaled)) { return true; // shortcut } |