diff options
author | halin-george <halin-george@yandex-team.ru> | 2022-02-10 16:50:07 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:07 +0300 |
commit | 7c7a0655bcf00449b1fcacc2c658cc4d5c3aca7b (patch) | |
tree | 41c83fd863c44839297aff8b2c301ec6b1853244 /library/cpp/coroutine | |
parent | 811ece47d06924d20a94f89d1b0f5cd37254a49c (diff) | |
download | ydb-7c7a0655bcf00449b1fcacc2c658cc4d5c3aca7b.tar.gz |
Restoring authorship annotation for <halin-george@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/coroutine')
-rw-r--r-- | library/cpp/coroutine/engine/impl.cpp | 2 | ||||
-rw-r--r-- | library/cpp/coroutine/engine/impl.h | 6 | ||||
-rw-r--r-- | library/cpp/coroutine/engine/trampoline.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/coroutine/engine/impl.cpp b/library/cpp/coroutine/engine/impl.cpp index 7ae6f74051..ca532690a7 100644 --- a/library/cpp/coroutine/engine/impl.cpp +++ b/library/cpp/coroutine/engine/impl.cpp @@ -24,7 +24,7 @@ TCont::TCont(NCoro::NStack::IAllocator& allocator, NCoro::TTrampoline::TFunc func, const char* name) noexcept : Executor_(executor) - , Name_(name) + , Name_(name) , Trampoline_( allocator, stackSize, diff --git a/library/cpp/coroutine/engine/impl.h b/library/cpp/coroutine/engine/impl.h index 283a96ecf1..4154029c07 100644 --- a/library/cpp/coroutine/engine/impl.h +++ b/library/cpp/coroutine/engine/impl.h @@ -113,9 +113,9 @@ private: // TODO(velavokr): allow name storage owning (for generated names backed by TString) const char* Name_ = nullptr; - - NCoro::TTrampoline Trampoline_; - + + NCoro::TTrampoline Trampoline_; + TIntrusiveList<TJoinWait> Waiters_; bool Cancelled_ = false; bool Scheduled_ = false; diff --git a/library/cpp/coroutine/engine/trampoline.cpp b/library/cpp/coroutine/engine/trampoline.cpp index 10ea69ddc3..103177efef 100644 --- a/library/cpp/coroutine/engine/trampoline.cpp +++ b/library/cpp/coroutine/engine/trampoline.cpp @@ -16,7 +16,7 @@ namespace NCoro { TTrampoline::TTrampoline(NStack::IAllocator& allocator, ui32 stackSize, TFunc f, TCont* cont) noexcept : Stack_(allocator, stackSize, cont->Name()) - , Clo_{this, Stack_.Get(), cont->Name()} + , Clo_{this, Stack_.Get(), cont->Name()} , Ctx_(Clo_) , Func_(std::move(f)) , Cont_(cont) |