aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/coroutine/engine
diff options
context:
space:
mode:
authoragalakhov <agalakhov@yandex-team.ru>2022-02-10 16:49:51 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:51 +0300
commit8e39421d5f7b28ca12255c9a4fd8a6c593592588 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/coroutine/engine
parent61a83e458f803c69f5d9d74e5d716cb95b3f2225 (diff)
downloadydb-8e39421d5f7b28ca12255c9a4fd8a6c593592588.tar.gz
Restoring authorship annotation for <agalakhov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/coroutine/engine')
-rw-r--r--library/cpp/coroutine/engine/condvar.h6
-rw-r--r--library/cpp/coroutine/engine/events.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/coroutine/engine/condvar.h b/library/cpp/coroutine/engine/condvar.h
index 7629392399..ffceede6fa 100644
--- a/library/cpp/coroutine/engine/condvar.h
+++ b/library/cpp/coroutine/engine/condvar.h
@@ -11,9 +11,9 @@ public:
const int ret = WaitQueue_.WaitD(current, deadline);
if (ret != EWAKEDUP) {
- return ret;
- }
-
+ return ret;
+ }
+
return mutex->LockD(current, deadline);
}
diff --git a/library/cpp/coroutine/engine/events.h b/library/cpp/coroutine/engine/events.h
index 39d2a8025c..07cc4d25e8 100644
--- a/library/cpp/coroutine/engine/events.h
+++ b/library/cpp/coroutine/engine/events.h
@@ -93,7 +93,7 @@ public:
Waiters_.PopFront()->Wake();
}
}
-
+
void BroadCast() noexcept {
while (!Waiters_.Empty()) {
Waiters_.PopFront()->Wake();