diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /util/system/context.h | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'util/system/context.h')
-rw-r--r-- | util/system/context.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/util/system/context.h b/util/system/context.h index d2a349bfc51..9f16663f66d 100644 --- a/util/system/context.h +++ b/util/system/context.h @@ -78,10 +78,10 @@ public: makecontext(&Ctx_, (ucontext_func_t)ContextTrampoLine, 1, c.TrampoLine); } - inline ~TContMachineContext() { + inline ~TContMachineContext() { } - inline void SwitchTo(TContMachineContext* next) noexcept { + inline void SwitchTo(TContMachineContext* next) noexcept { swapcontext(&Ctx_, &next->Ctx_); } @@ -98,9 +98,9 @@ public: TContMachineContext(); TContMachineContext(const TContClosure& c); - ~TContMachineContext(); + ~TContMachineContext(); - void SwitchTo(TContMachineContext* next) noexcept; + void SwitchTo(TContMachineContext* next) noexcept; private: THolder<TImpl> Impl_; @@ -112,9 +112,9 @@ class TContMachineContext { public: TContMachineContext(); TContMachineContext(const TContClosure& c); - ~TContMachineContext(); + ~TContMachineContext(); - void SwitchTo(TContMachineContext* next) noexcept; + void SwitchTo(TContMachineContext* next) noexcept; private: void* Fiber_; @@ -133,7 +133,7 @@ public: inline ~TContMachineContext() = default; - void SwitchTo(TContMachineContext* next) noexcept; + void SwitchTo(TContMachineContext* next) noexcept; private: __myjmp_buf Buf_; @@ -153,7 +153,7 @@ private: }; #endif -static inline size_t MachineContextSize() noexcept { +static inline size_t MachineContextSize() noexcept { return sizeof(TContMachineContext); } |