aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/latch.h
diff options
context:
space:
mode:
authorAlexander Gololobov <davenger@yandex-team.com>2022-02-10 16:47:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:38 +0300
commitfccc62e9bfdce9be2fe7e0f23479da3a5512211a (patch)
treec0748b5dcbade83af788c0abfa89c0383d6b779c /library/cpp/messagebus/latch.h
parent39608cdb86363c75ce55b2b9a69841c3b71f22cf (diff)
downloadydb-fccc62e9bfdce9be2fe7e0f23479da3a5512211a.tar.gz
Restoring authorship annotation for Alexander Gololobov <davenger@yandex-team.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/messagebus/latch.h')
-rw-r--r--library/cpp/messagebus/latch.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/messagebus/latch.h b/library/cpp/messagebus/latch.h
index 3677ee7c29..373f4c0e13 100644
--- a/library/cpp/messagebus/latch.h
+++ b/library/cpp/messagebus/latch.h
@@ -23,7 +23,7 @@ public:
}
TGuard<TMutex> guard(Mutex);
- while (AtomicGet(Locked) == 1) {
+ while (AtomicGet(Locked) == 1) {
CondVar.WaitI(Mutex);
}
}
@@ -39,7 +39,7 @@ public:
}
TGuard<TMutex> guard(Mutex);
- AtomicSet(Locked, 0);
+ AtomicSet(Locked, 0);
CondVar.BroadCast();
}