aboutsummaryrefslogtreecommitdiffstats
path: root/util/thread/lfstack_ut.cpp
diff options
context:
space:
mode:
authoriaz1607 <iaz1607@yandex-team.ru>2022-02-10 16:45:37 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:37 +0300
commite5437feb4ac2d2dc044e1090b9312dde5ef197e0 (patch)
treef5a238c69dd20a1fa2092127a31b8aff25020f7d /util/thread/lfstack_ut.cpp
parentf4945d0a44b8770f0801de3056aa41639b0b7bd2 (diff)
downloadydb-e5437feb4ac2d2dc044e1090b9312dde5ef197e0.tar.gz
Restoring authorship annotation for <iaz1607@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/thread/lfstack_ut.cpp')
-rw-r--r--util/thread/lfstack_ut.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/thread/lfstack_ut.cpp b/util/thread/lfstack_ut.cpp
index e20a838f95..ea012d076b 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);
}
};