24 Fiber* f =
new Fiber(&Runnable::entry_, (
void*)
this);
static FiberHook * hookDead
Hook to be called when a Fiber is destroyed.
void() FiberHook(Fiber &)
static FiberHook * hookNew
Hook to be called when a Fiber is created.
virtual int fiberHook(Fiber &f)
static safe_ptr< singleton_type >::type instance() noexcept
Return the only instance of T within this thread.
The class that manages the fibers within this thread.
void add(Fiber *fiber) noexcept
#define unlikely(expr)
Marks the given expression to likely be evaluated to true.