X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ec0a450a5851dc5b9e6eb0eb9c346e90eb6151a7..8be93beba0c7547303f5a102c2cb528b8c586066:/src/include/xbt/context.h diff --git a/src/include/xbt/context.h b/src/include/xbt/context.h index 018bef6991..dece9ead7e 100644 --- a/src/include/xbt/context.h +++ b/src/include/xbt/context.h @@ -27,13 +27,11 @@ /** @brief A context */ typedef struct s_xbt_context *xbt_context_t; - /** @brief A context function */ - typedef int(*xbt_context_function_t)(int argc, char *argv[]); /* @}*/ void xbt_context_empty_trash(void); -XBT_PUBLIC(xbt_context_t) xbt_context_new(xbt_context_function_t code, +XBT_PUBLIC(xbt_context_t) xbt_context_new(const char*name,xbt_main_func_t code, void_f_pvoid_t startup_func, void *startup_arg, void_f_pvoid_t cleanup_func, void *cleanup_arg, int argc, char *argv[]); @@ -41,5 +39,12 @@ XBT_PUBLIC(void) xbt_context_kill(xbt_context_t context); XBT_PUBLIC(void) xbt_context_start(xbt_context_t context); XBT_PUBLIC(void) xbt_context_yield(void); XBT_PUBLIC(void) xbt_context_schedule(xbt_context_t context); + +void xbt_context_set_jprocess(xbt_context_t context, void *jp); +void* xbt_context_get_jprocess(xbt_context_t context); + +void xbt_context_set_jenv(xbt_context_t context,void* je); +void* xbt_context_get_jenv(xbt_context_t context); + /* @} */ #endif /* _XBT_CONTEXT_H */