Header only cross platform wrapper of fiber API
A fiber is a particularly lightweight thread of execution. Which is useful for implementing coroutine, iterator, lightweight thread, etc.
How to use
#include "fiber.h" before using this library.
There are quite few interfaces:
FBAPI static bool_t fiber_is_current(const fiber_t* const fb); FBAPI static fiber_t* fiber_create(fiber_t* primary, size_t stack, fiber_proc run, void* userdata); FBAPI static bool_t fiber_delete(fiber_t* fb); FBAPI static bool_t fiber_switch(fiber_t* fb);
- Windows backend with
- POSIX backend with