Skip to content
Snippets Groups Projects
Commit 1cf9f0f5 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

[Context] Make Context::getCurrentFiber() public

parent 3c984ad7
No related branches found
No related tags found
1 merge request!191Set affinity on block
......@@ -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 = []() {};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment