Yume Project 3.0
Touhou-inspired Danmaku game made in C only
Chargement...
Recherche...
Aucune correspondance
Référence du fichier cotask_data.h
#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.

Classes

struct  CoTask
struct  CoTaskData
struct  CoTaskInitData

Macros

#define CO_STACK_SIZE   (256 * 1024)

Définitions de type

typedef struct CoTaskData CoTaskData
typedef struct CoTaskInitData CoTaskInitData

Énumérations

enum  { COTASK_WAIT_NONE , COTASK_WAIT_DELAY , COTASK_WAIT_EVENT , COTASK_WAIT_SUBTASKS }

Fonctions

void cotask_global_init (void)
void cotask_global_shutdown (void)
CoTaskcotask_new_internal (koishi_entrypoint_t entry_point)
 Pour créer une nouvelle cotask Fonction de "bas" niveau.
void * cotask_entry (void *varg)
 EHH en gros ce qui fait touner la tache.
void * cotask_resume_internal (CoTask *task, void *arg)
 Fonction interne pour le resume.
static CoTaskDatacotask_get_data (CoTask *task)

Documentation des macros

◆ CO_STACK_SIZE

#define CO_STACK_SIZE   (256 * 1024)

Documentation des définitions de type

◆ CoTaskData

typedef struct CoTaskData CoTaskData

◆ CoTaskInitData

typedef struct CoTaskInitData CoTaskInitData

Documentation du type de l'énumération

◆ anonymous enum

anonymous enum
Valeurs énumérées
COTASK_WAIT_NONE 
COTASK_WAIT_DELAY 
COTASK_WAIT_EVENT 
COTASK_WAIT_SUBTASKS 

Documentation des fonctions

◆ cotask_entry()

void * cotask_entry ( void * varg)

EHH en gros ce qui fait touner la tache.

Paramètres
varg
Renvoie
void*

◆ cotask_get_data()

CoTaskData * cotask_get_data ( CoTask * task)
inlinestatic

◆ 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
entry_point
Renvoie
CoTask*

◆ cotask_resume_internal()

void * cotask_resume_internal ( CoTask * task,
void * arg )

Fonction interne pour le resume.

Paramètres
task
arg
Renvoie
void*