odyssey/src/mm_context.h

24 lines
428 B
C
Raw Normal View History

#ifndef MM_CONTEXT_H_
#define MM_CONTEXT_H_
/*
* machinarium.
*
* cooperative multitasking engine.
*/
typedef void (*mm_context_function_t)(void*);
2017-05-16 13:58:06 +00:00
typedef struct mm_context_t mm_context_t;
struct mm_context_t {
void **sp;
};
void mm_context_create(mm_context_t*, mm_fiberstack_t*,
mm_context_function_t,
2017-05-16 13:58:06 +00:00
void*);
void mm_context_swap(mm_context_t*, mm_context_t*);
#endif