C-API example.
#include <stdio.h>
{
printf("fiber()\n");
}
{
printf("main_fiber()\n");
return 0;
}
int main_fiber(int argc, char **argv)
int zth_fiber_create(void(*f)(void *), void *arg=nullptr, size_t stack=0, char const *name=nullptr) noexcept
Run a function as a new fiber.
fiber_type< F >::factory fiber(F f, char const *name=nullptr)
Create a new fiber.