Zth (libzth)
|
An abstract class, that can be started as a fiber. More...
#include <fiber.h>
Public Member Functions | |
virtual | ~Runnable ()=default |
int | run () |
Fiber * | fiber () const noexcept |
operator Fiber & () const noexcept | |
char const * | id_str () const |
Protected Member Functions | |
constexpr | Runnable () noexcept |
virtual int | fiberHook (Fiber &f) |
virtual void | cleanup () |
virtual void | entry ()=0 |
An abstract class, that can be started as a fiber.
Create a subclass of this class if you want to have an object that can be started as a fiber. In contrast to a zth::Fiber, this class does not have to be on the heap and exists before and after the actual fiber.
|
inlineconstexprprotectednoexcept |
|
virtualdefault |
|
inlineprotectedvirtual |
|
protectedpure virtual |
Implemented in zth::PerfFiber, and zth::Waiter.
|
inlineprotectedvirtual |
Reimplemented in zth::PerfFiber, and zth::Waiter.