diff options
author | Alexander Gololobov <davenger@yandex-team.com> | 2022-02-10 16:47:37 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:37 +0300 |
commit | 39608cdb86363c75ce55b2b9a69841c3b71f22cf (patch) | |
tree | 4ec132c1665bd4d68e3628aa18d937c70d32413b /library/cpp/messagebus/latch.h | |
parent | 54295b9bd4dc45c54d804084fd846d945148a7f0 (diff) | |
download | ydb-39608cdb86363c75ce55b2b9a69841c3b71f22cf.tar.gz |
Restoring authorship annotation for Alexander Gololobov <davenger@yandex-team.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/messagebus/latch.h')
-rw-r--r-- | library/cpp/messagebus/latch.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/messagebus/latch.h b/library/cpp/messagebus/latch.h index 373f4c0e13..3677ee7c29 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(); } |