Zth (libzth)
fiber.h File Reference
#include <libzth/allocator.h>
#include <libzth/config.h>
#include <libzth/context.h>
#include <libzth/init.h>
#include <libzth/list.h>
#include <libzth/perf.h>
#include <libzth/time.h>
#include <libzth/util.h>
#include <errno.h>
#include <exception>
#include <utility>
#include <functional>

Go to the source code of this file.

Classes

class  zth::Fiber
 The fiber. More...
 
class  zth::Runnable
 An abstract class, that can be started as a fiber. More...
 

Namespaces

 zth
 

Functions

Fiber & zth::currentFiber () noexcept
 Return the currently executing fiber. More...
 
void * zth::fls () noexcept
 Return the fiber-local storage, as set by setFls(). More...
 
void zth::setFls (void *data=nullptr) noexcept
 Set the fiber-local storage. More...
 
void * zth_fls () noexcept
 Return the fiber-local storage, as set by setFls(). More...
 
void zth_setFls (void *data=nullptr) noexcept
 Set the fiber-local storage. More...
 
int main_fiber (int argc, char **argv)
 

Function Documentation

◆ main_fiber()

int main_fiber ( int  argc,
char **  argv 
)