diff options
Diffstat (limited to 'library/cpp/coroutine/engine/impl.cpp')
| -rw-r--r-- | library/cpp/coroutine/engine/impl.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/coroutine/engine/impl.cpp b/library/cpp/coroutine/engine/impl.cpp index f8793e0b614..7ae6f74051e 100644 --- a/library/cpp/coroutine/engine/impl.cpp +++ b/library/cpp/coroutine/engine/impl.cpp @@ -277,12 +277,12 @@ void TContExecutor::ScheduleExecutionNow(TCont* cont) noexcept { } namespace { - inline TContExecutor*& ThisThreadExecutor() { - struct TThisThreadExecutorHolder { + inline TContExecutor*& ThisThreadExecutor() { + struct TThisThreadExecutorHolder { TContExecutor* Executor = nullptr; - }; - return FastTlsSingletonWithPriority<TThisThreadExecutorHolder, 0>()->Executor; - } + }; + return FastTlsSingletonWithPriority<TThisThreadExecutorHolder, 0>()->Executor; + } } void TContExecutor::DeleteScheduled() noexcept { @@ -292,14 +292,14 @@ void TContExecutor::DeleteScheduled() noexcept { } TCont* RunningCont() { - TContExecutor* thisThreadExecutor = ThisThreadExecutor(); + TContExecutor* thisThreadExecutor = ThisThreadExecutor(); return thisThreadExecutor ? thisThreadExecutor->Running() : nullptr; } void TContExecutor::RunScheduler() noexcept { try { TContExecutor* const prev = ThisThreadExecutor(); - ThisThreadExecutor() = this; + ThisThreadExecutor() = this; TCont* caller = Current_; TExceptionSafeContext* context = caller ? caller->Trampoline_.Context() : &SchedContext_; Y_DEFER { |
