+ return (*env)->GetLongField(env, jprocess, id) ? JNI_TRUE : JNI_FALSE;
+}
+
+void jprocess_schedule(smx_context_t context)
+{
+ JNIEnv *env;
+ jmethodID id;
+
+ env = get_current_thread_env();
+
+ id = jxbt_get_smethod(env, "simgrid/msg/Process", "schedule", "()V");
+
+ if (!id)
+ return;
+
+ (*env)->CallVoidMethod(env, ((smx_ctx_java_t) context)->jprocess, id);
+}
+
+
+
+void jprocess_unschedule(smx_context_t context)
+{
+ JNIEnv *env;
+ jmethodID id;
+
+ env = get_current_thread_env();
+
+
+ id = jxbt_get_smethod(env, "simgrid/msg/Process", "unschedule", "()V");
+
+ if (!id)
+ return;
+
+ (*env)->CallVoidMethod(env, ((smx_ctx_java_t) context)->jprocess, id);