mirror of https://github.com/yandex/odyssey.git
24 lines
413 B
C
24 lines
413 B
C
![]() |
#ifndef FT_CONTEXT_H_
|
||
|
#define FT_CONTEXT_H_
|
||
|
|
||
|
/*
|
||
|
* libfluent.
|
||
|
*
|
||
|
* Cooperative multitasking engine.
|
||
|
*/
|
||
|
|
||
|
typedef struct ftcontext ftcontext;
|
||
|
|
||
|
typedef void (*ftcontextf)(void*);
|
||
|
|
||
|
struct ftcontext {
|
||
|
ucontext_t context;
|
||
|
};
|
||
|
|
||
|
void ft_context_init_main(ftcontext*);
|
||
|
void ft_context_init(ftcontext*, void*, int,
|
||
|
ftcontext*, ftcontextf, void*);
|
||
|
void ft_context_swap(ftcontext*, ftcontext*);
|
||
|
|
||
|
#endif
|