/* lower this if you want to reduce the memory consumption */
#ifndef CONTEXT_STACK_SIZE /* allow lua to override this */
#define CONTEXT_STACK_SIZE 128*1024
/* lower this if you want to reduce the memory consumption */
#ifndef CONTEXT_STACK_SIZE /* allow lua to override this */
#define CONTEXT_STACK_SIZE 128*1024
typedef struct s_smx_ctx_sysv {
s_smx_ctx_base_t super; /* Fields of super implementation */
ucontext_t uc; /* the thread that execute the code */
typedef struct s_smx_ctx_sysv {
s_smx_ctx_base_t super; /* Fields of super implementation */
ucontext_t uc; /* the thread that execute the code */
char stack[CONTEXT_STACK_SIZE]; /* the thread stack size */
} s_smx_ctx_sysv_t, *smx_ctx_sysv_t;
char stack[CONTEXT_STACK_SIZE]; /* the thread stack size */
} s_smx_ctx_sysv_t, *smx_ctx_sysv_t;
void SIMIX_ctx_sysv_factory_init(smx_context_factory_t *factory);
int smx_ctx_sysv_factory_finalize(smx_context_factory_t *factory);
void SIMIX_ctx_sysv_factory_init(smx_context_factory_t *factory);
int smx_ctx_sysv_factory_finalize(smx_context_factory_t *factory);