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 | 811c91d683d6123a2aa69baa10b30184f5e1204d (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/coroutine/engine | |
parent | 7c7a0655bcf00449b1fcacc2c658cc4d5c3aca7b (diff) | |
download | ydb-811c91d683d6123a2aa69baa10b30184f5e1204d.tar.gz |
Restoring authorship annotation for <halin-george@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/coroutine/engine')
-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 ca532690a7..7ae6f74051 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 4154029c07..283a96ecf1 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 103177efef..10ea69ddc3 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) |