Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
The file containing the new implementation of the switch context mechanism.
[simgrid.git] / src / xbt / xbt_jcontext.h
1 #ifndef _XBT_JCONTEXT_H\r
2 #define _XBT_JCONTEXT_H\r
3 \r
4 #include <jni.h>                                        /* use java native interface to bind the msg structures to the java instances                           */      \r
5 #include "portable.h"\r
6 #include "xbt/misc.h"\r
7 \r
8 #ifndef _XBT_CONTEXT_PRIVATE_H\r
9 #include "xbt_context_private.h"\r
10 #endif /* _XBT_CONTEXT_PRIVATE_H */\r
11 \r
12 SG_BEGIN_DECL()\r
13 \r
14 #ifndef _XBT_CONTEXT_FACTORY_T_DEFINED\r
15 typedef struct s_xbt_context_factory* xbt_context_factory_t;\r
16 #define _XBT_CONTEXT_FACTORY_T_DEFINED\r
17 #endif /* !_XBT_CONTEXT_FACTORY_T_DEFINED */\r
18 \r
19 typedef struct s_xbt_jcontext\r
20 {\r
21         XBT_CTX_BASE_T;\r
22         jobject jprocess;                               /* the java process instance binded with the msg process structure                                                      */\r
23         JNIEnv* jenv;                                   /* jni interface pointer associated to this thread                                                                                      */\r
24 }s_xbt_jcontext_t,* xbt_jcontext_t;\r
25 \r
26 int\r
27 xbt_jcontext_factory_init(xbt_context_factory_t* factory);\r
28 \r
29 \r
30 SG_END_DECL()\r
31 \r
32 \r
33 \r
34 \r
35 #endif /* !_XBT_JCONTEXT_H */\r