#include "portable.h" /* loads context system definitions */
#include "xbt/context.h"
#include "xbt/ex.h"
-#include "xbt/xbt_thread.h"
+#include "xbt/xbt_os_thread.h"
#include <jni.h>
SG_BEGIN_DECL()
-/**
- * This function gets the context of a java process instance.
- *
- * @param index The id (index in the table) of the java process object.
- *
- * @return The context of the java process object.
- */
-xbt_context_t xbt_context_get_by_id(jlong index);
-
-/*
- * This function appends a context in the table of contexts of the simulation.
- *
- * @param context The context to append.
- *
- * @return Returns 0 if successful the function returns 0, and -1 otherwise.
- */
-int xbt_context_append(xbt_context_t context);
+/* pointers to schedule and unschedule functions */
+typedef void (*pfn_schedule_t)(xbt_context_t);
+typedef pfn_schedule_t pfn_unschedule_t;
/*
* This function is called by the simulator to terminate a java process instance.
*/
void jcontext_exit(xbt_context_t context ,int value,JNIEnv* env);
-/** Returns the condition used to synchronise the creation of a java process. */
-xbt_thcond_t xbt_creation_cond_get(void);
-
-/** Returns the mutex used to synchronise the creation of a java process */
-xbt_mutex_t xbt_creation_mutex_get(void);
-
SG_END_DECL()
#endif /* !_XBT_CONTEXT_PRIVATE_H */