c3d1cef5e7
fix style before adding more code
32 lines
503 B
C
32 lines
503 B
C
#ifndef COIOIMPL_H
|
|
#define COIOIMPL_
|
|
|
|
#include "coro.h"
|
|
#include "coio.h"
|
|
|
|
typedef struct CoioTaskList CoioTaskList;
|
|
|
|
struct CoioTask {
|
|
coro_context ctx;
|
|
struct coro_stack stk;
|
|
|
|
coio_func func;
|
|
void *arg;
|
|
|
|
int done;
|
|
|
|
/* linked list support */
|
|
CoioTask *next;
|
|
CoioTask *prev;
|
|
};
|
|
|
|
struct CoioTaskList {
|
|
CoioTask *head;
|
|
CoioTask *tail;
|
|
};
|
|
|
|
void coio_add (CoioTaskList * lst, CoioTask * task);
|
|
void coio_del (CoioTaskList * lst, CoioTask * task);
|
|
|
|
#endif
|