aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/context.h
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:25 +0300
commit344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/system/context.h
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
downloadydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'util/system/context.h')
-rw-r--r--util/system/context.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/system/context.h b/util/system/context.h
index 9f16663f66d..d2a349bfc51 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);
}