odyssey/third_party/machinarium/sources/mm.h

30 lines
411 B
C
Raw Normal View History

2017-05-24 11:04:19 +00:00
#ifndef MM_H
#define MM_H
2017-03-21 09:47:32 +00:00
/*
* machinarium.
*
* cooperative multitasking engine.
*/
2017-03-21 09:47:32 +00:00
typedef struct mm_config mm_config_t;
typedef struct mm mm_t;
struct mm_config {
int page_size;
int stack_size;
int pool_size;
int coroutine_cache_size;
int msg_cache_gc_size;
};
struct mm {
mm_config_t config;
mm_machinemgr_t machine_mgr;
mm_taskmgr_t task_mgr;
};
extern mm_t machinarium;
2017-05-24 11:04:19 +00:00
#endif /* MM_H */