|
Kore
|
The fiber-API is experimental and only supported on a few system. More...
Go to the source code of this file.
Data Structures | |
| struct | kinc_fiber |
Typedefs | |
| typedef struct kinc_fiber | kinc_fiber_t |
Functions | |
| KINC_FUNC void | kinc_fiber_init_current_thread (kinc_fiber_t *fiber) |
| Uses the current thread as a fiber. | |
| KINC_FUNC void | kinc_fiber_init (kinc_fiber_t *fiber, void(*func)(void *param), void *param) |
| Initializes a fiber. | |
| KINC_FUNC void | kinc_fiber_destroy (kinc_fiber_t *fiber) |
| Destroys a fiber. | |
| KINC_FUNC void | kinc_fiber_switch (kinc_fiber_t *fiber) |
| Switch the current thread to a different fiber. | |
The fiber-API is experimental and only supported on a few system.
| KINC_FUNC void kinc_fiber_destroy | ( | kinc_fiber_t * | fiber | ) |
Destroys a fiber.
| fiber | The fiber to destroy |
| KINC_FUNC void kinc_fiber_init | ( | kinc_fiber_t * | fiber, |
| void(* | func )(void *param), | ||
| void * | param ) |
Initializes a fiber.
| fiber | The fiber-object to initialize |
| func | The function to be run in the fiber-context |
| param | A parameter to be provided to the fiber-function when it starts running |
| KINC_FUNC void kinc_fiber_init_current_thread | ( | kinc_fiber_t * | fiber | ) |
Uses the current thread as a fiber.
| fiber | The fiber-object to initialize using the current thread |
| KINC_FUNC void kinc_fiber_switch | ( | kinc_fiber_t * | fiber | ) |
Switch the current thread to a different fiber.
| fiber | The fiber to switch to |