From 1cf9f0f526112d759ee667b5eccea71255cfd690 Mon Sep 17 00:00:00 2001 From: Florian Schmaus <flow@cs.fau.de> Date: Wed, 5 May 2021 15:56:43 +0200 Subject: [PATCH] [Context] Make Context::getCurrentFiber() public --- emper/Context.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/emper/Context.hpp b/emper/Context.hpp index a010c897..9f1a9436 100644 --- a/emper/Context.hpp +++ b/emper/Context.hpp @@ -78,12 +78,6 @@ class ALIGN_TO_CACHE_LINE Context : Logger<LogSubsystem::C> { currentContext->currentFiber = fiber; } - static auto getCurrentFiber() -> Fiber* { - assert(currentContext); - - return currentContext->currentFiber; - } - public: // cppcheck-suppress noExplicitConstructor selfInitialization Context(func_t mainFunction) @@ -126,6 +120,12 @@ class ALIGN_TO_CACHE_LINE Context : Logger<LogSubsystem::C> { // VALGRIND_STACK_DEREGISTER(valgrindStackId); } + static auto getCurrentFiber() -> Fiber* { + assert(currentContext); + + return currentContext->currentFiber; + } + inline void setEmptyHook() { startAndResumeHook = []() {}; } -- GitLab