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
diff --git a/src/xbt/xbt_jcontext.h b/src/xbt/xbt_jcontext.h
new file mode 100644 (file)
index 0000000..f3c1042
--- /dev/null
@@ -0,0 +1,35 @@
+#ifndef _XBT_JCONTEXT_H\r
+#define _XBT_JCONTEXT_H\r
+\r
+#include <jni.h>                                       /* use java native interface to bind the msg structures to the java instances                           */      \r
+#include "portable.h"\r
+#include "xbt/misc.h"\r
+\r
+#ifndef _XBT_CONTEXT_PRIVATE_H\r
+#include "xbt_context_private.h"\r
+#endif /* _XBT_CONTEXT_PRIVATE_H */\r
+\r
+SG_BEGIN_DECL()\r
+\r
+#ifndef _XBT_CONTEXT_FACTORY_T_DEFINED\r
+typedef struct s_xbt_context_factory* xbt_context_factory_t;\r
+#define _XBT_CONTEXT_FACTORY_T_DEFINED\r
+#endif /* !_XBT_CONTEXT_FACTORY_T_DEFINED */\r
+\r
+typedef struct s_xbt_jcontext\r
+{\r
+       XBT_CTX_BASE_T;\r
+       jobject jprocess;                               /* the java process instance binded with the msg process structure                                                      */\r
+       JNIEnv* jenv;                                   /* jni interface pointer associated to this thread                                                                                      */\r
+}s_xbt_jcontext_t,* xbt_jcontext_t;\r
+\r
+int\r
+xbt_jcontext_factory_init(xbt_context_factory_t* factory);\r
+\r
+\r
+SG_END_DECL()\r
+\r
+\r
+\r
+\r
+#endif /* !_XBT_JCONTEXT_H */\r