#include <stddef.h>
Go to the source code of this file.
|
enum | mco_result {
MCO_SUCCESS = 0,
MCO_GENERIC_ERROR,
MCO_INVALID_POINTER,
MCO_INVALID_COROUTINE,
MCO_NOT_SUSPENDED,
MCO_NOT_RUNNING,
MCO_MAKE_CONTEXT_ERROR,
MCO_SWITCH_CONTEXT_ERROR,
MCO_NOT_ENOUGH_SPACE,
MCO_OUT_OF_MEMORY,
MCO_INVALID_ARGUMENTS,
MCO_INVALID_OPERATION,
MCO_STACK_OVERFLOW
} |
|
enum | mco_state { MCO_DEAD = 0,
MCO_NORMAL,
MCO_RUNNING,
MCO_SUSPENDED
} |
|
◆ MCO_API
◆ MCO_DEFAULT_STORAGE_SIZE
#define MCO_DEFAULT_STORAGE_SIZE 1024 |
◆ mco_coro
◆ mco_desc
◆ mco_result
◆ mco_state
◆ mco_result
Enumerator |
---|
MCO_SUCCESS | |
MCO_GENERIC_ERROR | |
MCO_INVALID_POINTER | |
MCO_INVALID_COROUTINE | |
MCO_NOT_SUSPENDED | |
MCO_NOT_RUNNING | |
MCO_MAKE_CONTEXT_ERROR | |
MCO_SWITCH_CONTEXT_ERROR | |
MCO_NOT_ENOUGH_SPACE | |
MCO_OUT_OF_MEMORY | |
MCO_INVALID_ARGUMENTS | |
MCO_INVALID_OPERATION | |
MCO_STACK_OVERFLOW | |
Definition at line 228 of file minicoro.h.
◆ mco_state
Enumerator |
---|
MCO_DEAD | |
MCO_NORMAL | |
MCO_RUNNING | |
MCO_SUSPENDED | |
Definition at line 220 of file minicoro.h.
◆ mco_create()
◆ mco_desc_init()
◆ mco_destroy()
◆ mco_get_bytes_stored()
◆ mco_get_storage_size()
◆ mco_get_user_data()
◆ mco_init()
◆ mco_peek()
◆ mco_pop()
◆ mco_push()
◆ mco_result_description()
◆ mco_resume()
◆ mco_running()
◆ mco_status()
◆ mco_uninit()
◆ mco_yield()