diff options
author | agalakhov <agalakhov@yandex-team.ru> | 2022-02-10 16:49:51 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:51 +0300 |
commit | 61a83e458f803c69f5d9d74e5d716cb95b3f2225 (patch) | |
tree | c63ac6b8d61f5c83d025f4b0863f3a2235c6fa39 /library/cpp/coroutine | |
parent | 9622b1b611a91d945eb942671e7ad62d44878b66 (diff) | |
download | ydb-61a83e458f803c69f5d9d74e5d716cb95b3f2225.tar.gz |
Restoring authorship annotation for <agalakhov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/coroutine')
-rw-r--r-- | library/cpp/coroutine/engine/condvar.h | 6 | ||||
-rw-r--r-- | library/cpp/coroutine/engine/events.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/coroutine/engine/condvar.h b/library/cpp/coroutine/engine/condvar.h index ffceede6fa..7629392399 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 07cc4d25e8..39d2a8025c 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(); |