From: mquinson Date: Fri, 6 Jul 2007 20:25:29 +0000 (+0000) Subject: some code allowing the upper JAVA layer (user interface) to get back some information... X-Git-Tag: v3.3~1690 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/bc4ecf5c1d5c6335a43abc0e4b07303908634ade some code allowing the upper JAVA layer (user interface) to get back some information from the bottom one (context implementation). This is used in the JAVA callbacks in charge of starting/stopping the java thread on behalf of the jcontext stuff git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3670 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/include/xbt/context.h b/src/include/xbt/context.h index 018bef6991..a032454367 100644 --- a/src/include/xbt/context.h +++ b/src/include/xbt/context.h @@ -41,5 +41,18 @@ 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_jmutex(xbt_context_t context,void *jm); +void* xbt_context_get_jmutex(xbt_context_t context); + +void xbt_context_set_jcond(xbt_context_t context,void *jc); +void* xbt_context_get_jcond(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 */