aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/misc/test_sync.h
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /library/cpp/messagebus/misc/test_sync.h
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/messagebus/misc/test_sync.h')
-rw-r--r--library/cpp/messagebus/misc/test_sync.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/messagebus/misc/test_sync.h b/library/cpp/messagebus/misc/test_sync.h
index be3f4f20b8..a74b5d6f3b 100644
--- a/library/cpp/messagebus/misc/test_sync.h
+++ b/library/cpp/messagebus/misc/test_sync.h
@@ -32,7 +32,7 @@ public:
void WaitFor(unsigned n) {
TGuard<TMutex> guard(Mutex);
- Y_VERIFY(Current <= n, "too late, waiting for %d, already %d", n, Current);
+ Y_VERIFY(Current <= n, "too late, waiting for %d, already %d", n, Current);
while (n > Current) {
CondVar.WaitI(Mutex);
@@ -42,7 +42,7 @@ public:
void WaitForAndIncrement(unsigned n) {
TGuard<TMutex> guard(Mutex);
- Y_VERIFY(Current <= n, "too late, waiting for %d, already %d", n, Current);
+ Y_VERIFY(Current <= n, "too late, waiting for %d, already %d", n, Current);
while (n > Current) {
CondVar.WaitI(Mutex);
@@ -55,7 +55,7 @@ public:
void CheckAndIncrement(unsigned n) {
TGuard<TMutex> guard(Mutex);
- Y_VERIFY(Current == n, "must be %d, currently %d", n, Current);
+ Y_VERIFY(Current == n, "must be %d, currently %d", n, Current);
DoInc();
CondVar.BroadCast();
@@ -64,12 +64,12 @@ public:
void Check(unsigned n) {
TGuard<TMutex> guard(Mutex);
- Y_VERIFY(Current == n, "must be %d, currently %d", n, Current);
+ Y_VERIFY(Current == n, "must be %d, currently %d", n, Current);
}
private:
void DoInc() {
unsigned r = ++Current;
- Y_UNUSED(r);
+ Y_UNUSED(r);
}
};