diff options
| author | arkady-e1ppa <[email protected]> | 2024-04-15 19:08:59 +0300 |
|---|---|---|
| committer | arkady-e1ppa <[email protected]> | 2024-04-15 19:24:02 +0300 |
| commit | bbefdb67b85b033ec67fef5f5a6ecbc0fc09e53c (patch) | |
| tree | 20c871260580a2ef0daf84e555940c865d547ee3 | |
| parent | 3c122523a62d9e7e6a1ce8e0fcd1282b373aca34 (diff) | |
Cosmetics in coroutine
2236dee26f1852bf0fc3f65cb60730e6c5bafe7a
| -rw-r--r-- | yt/yt/core/concurrency/coroutine.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/yt/yt/core/concurrency/coroutine.h b/yt/yt/core/concurrency/coroutine.h index 275870456b2..ab827b22666 100644 --- a/yt/yt/core/concurrency/coroutine.h +++ b/yt/yt/core/concurrency/coroutine.h @@ -20,12 +20,6 @@ namespace NYT::NConcurrency { namespace NDetail { -DEFINE_ENUM(ECoroState, - ((Running) (0)) - ((Abandoned) (1)) - ((Completed) (2)) -); - //////////////////////////////////////////////////////////////////////////////// class TCoroutineBase @@ -46,6 +40,12 @@ protected: void Suspend(); private: + enum class ECoroState { + Running, + Abandoned, + Completed, + }; + std::shared_ptr<TExecutionStack> CoroutineStack_; TExceptionSafeContext CallerContext_; |
