diff options
author | leo <leo@yandex-team.ru> | 2022-02-10 16:46:40 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:40 +0300 |
commit | 99609724f661f7e21d1cb08e8d80e87c3632fdb3 (patch) | |
tree | 49e222ea1c5804306084bb3ae065bb702625360f /util/system/event.cpp | |
parent | 980edcd3304699edf9d4e4d6a656e585028e2a72 (diff) | |
download | ydb-99609724f661f7e21d1cb08e8d80e87c3632fdb3.tar.gz |
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/event.cpp')
-rw-r--r-- | util/system/event.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/util/system/event.cpp b/util/system/event.cpp index 1eb0380eac..79b3cdb291 100644 --- a/util/system/event.cpp +++ b/util/system/event.cpp @@ -1,5 +1,5 @@ -#include "datetime.h" -#include "defaults.h" +#include "datetime.h" +#include "defaults.h" #include <cstdio> @@ -7,7 +7,7 @@ #include "event.h" #include "mutex.h" #include "condvar.h" - + #ifdef _win_ #include "winint.h" #endif @@ -66,7 +66,7 @@ public: Cond.Signal(); } } - + inline void Reset() noexcept { AtomicSet(Signaled, 0); } @@ -109,9 +109,9 @@ private: TSystemEvent::TSystemEvent(ResetMode rmode) : EvImpl_(new TEvImpl(rmode)) -{ -} - +{ +} + TSystemEvent::TSystemEvent(const TSystemEvent& other) noexcept : EvImpl_(other.EvImpl_) { @@ -123,11 +123,11 @@ TSystemEvent& TSystemEvent::operator=(const TSystemEvent& other) noexcept { } TSystemEvent::~TSystemEvent() = default; - + void TSystemEvent::Reset() noexcept { EvImpl_->Reset(); -} - +} + void TSystemEvent::Signal() noexcept { EvImpl_->Signal(); } |