|
Kore 3
|
The fiber-API is experimental and only supported on a few system. More...
Go to the source code of this file.
Data Structures | |
| struct | kore_fiber |
Typedefs | |
| typedef struct kore_fiber | kore_fiber |
Functions | |
| KORE_FUNC void | kore_fiber_init_current_thread (kore_fiber *fiber) |
| Uses the current thread as a fiber. | |
| KORE_FUNC void | kore_fiber_init (kore_fiber *fiber, void(*func)(void *param), void *param) |
| Initializes a fiber. | |
| KORE_FUNC void | kore_fiber_destroy (kore_fiber *fiber) |
| Destroys a fiber. | |
| KORE_FUNC void | kore_fiber_switch (kore_fiber *fiber) |
| Switch the current thread to a different fiber. | |
The fiber-API is experimental and only supported on a few system.
| KORE_FUNC void kore_fiber_destroy | ( | kore_fiber * | fiber | ) |
Destroys a fiber.
| fiber | The fiber to destroy |
| KORE_FUNC void kore_fiber_init | ( | kore_fiber * | 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 |
| KORE_FUNC void kore_fiber_init_current_thread | ( | kore_fiber * | fiber | ) |
Uses the current thread as a fiber.
| fiber | The fiber-object to initialize using the current thread |
| KORE_FUNC void kore_fiber_switch | ( | kore_fiber * | fiber | ) |
Switch the current thread to a different fiber.
| fiber | The fiber to switch to |