diff options
author | iaz1607 <iaz1607@yandex-team.ru> | 2022-02-10 16:45:37 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:37 +0300 |
commit | 94e51c602b555459333b3c6ae92476c424c930bc (patch) | |
tree | b2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /util/thread/lfstack_ut.cpp | |
parent | e5437feb4ac2d2dc044e1090b9312dde5ef197e0 (diff) | |
download | ydb-94e51c602b555459333b3c6ae92476c424c930bc.tar.gz |
Restoring authorship annotation for <iaz1607@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/thread/lfstack_ut.cpp')
-rw-r--r-- | util/thread/lfstack_ut.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/thread/lfstack_ut.cpp b/util/thread/lfstack_ut.cpp index ea012d076b..e20a838f95 100644 --- a/util/thread/lfstack_ut.cpp +++ b/util/thread/lfstack_ut.cpp @@ -11,27 +11,27 @@ Y_UNIT_TEST_SUITE(TLockFreeStackTests) { class TCountDownLatch { private: - TAtomic Current_; - TSystemEvent EventObject_; + TAtomic Current_; + TSystemEvent EventObject_; public: TCountDownLatch(unsigned initial) - : Current_(initial) + : Current_(initial) { } void CountDown() { - if (AtomicDecrement(Current_) == 0) { - EventObject_.Signal(); + if (AtomicDecrement(Current_) == 0) { + EventObject_.Signal(); } } void Await() { - EventObject_.Wait(); + EventObject_.Wait(); } bool Await(TDuration timeout) { - return EventObject_.WaitT(timeout); + return EventObject_.WaitT(timeout); } }; |