#include "coroutine/coevent.h"
#include "cotask.h"
#include "ecs.h"
#include "list.h"
#include "../include/koishi.h"
#include <stdint.h>
#include <sys/types.h>
Aller au code source de ce fichier.
◆ CO_STACK_SIZE
| #define CO_STACK_SIZE (256 * 1024) |
◆ CoTaskData
| typedef struct CoTaskData CoTaskData |
◆ CoTaskInitData
| typedef struct CoTaskInitData CoTaskInitData |
◆ anonymous enum
| Valeurs énumérées |
|---|
| COTASK_WAIT_NONE | |
| COTASK_WAIT_DELAY | |
| COTASK_WAIT_EVENT | |
| COTASK_WAIT_SUBTASKS | |
◆ cotask_entry()
| void * cotask_entry |
( |
void * | varg | ) |
|
EHH en gros ce qui fait touner la tache.
- Paramètres
-
- Renvoie
- void*
◆ cotask_get_data()
◆ cotask_global_init()
| void cotask_global_init |
( |
void | | ) |
|
◆ cotask_global_shutdown()
| void cotask_global_shutdown |
( |
void | | ) |
|
◆ cotask_new_internal()
| CoTask * cotask_new_internal |
( |
koishi_entrypoint_t | entry_point | ) |
|
Pour créer une nouvelle cotask Fonction de "bas" niveau.
- Paramètres
-
- Renvoie
- CoTask*
◆ cotask_resume_internal()
| void * cotask_resume_internal |
( |
CoTask * | task, |
|
|
void * | arg ) |
Fonction interne pour le resume.
- Paramètres
-
- Renvoie
- void*