X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dccf1b41e9c7b5a696f01abceaa2779fe65f154f..70d44043847d29a634b9315100557a8e9698714d:/src/bindings/java/jmsg_process.h diff --git a/src/bindings/java/jmsg_process.h b/src/bindings/java/jmsg_process.h index fc738bfb6c..3c4bf5f868 100644 --- a/src/bindings/java/jmsg_process.h +++ b/src/bindings/java/jmsg_process.h @@ -15,6 +15,15 @@ SG_BEGIN_DECL(); +/* Shut up some errors in eclipse online compiler. I wish such a pimple wouldn't be needed */ +#ifndef JNIEXPORT +#define JNIEXPORT +#endif +#ifndef JNICALL +#define JNICALL +#endif +/* end of eclipse-mandated pimple */ + //Cached java fields extern jfieldID jprocess_field_Process_bind; extern jfieldID jprocess_field_Process_host; @@ -24,8 +33,6 @@ extern jfieldID jprocess_field_Process_name; extern jfieldID jprocess_field_Process_pid; extern jfieldID jprocess_field_Process_ppid; -JNIEXPORT void JNICALL Java_org_simgrid_msg_Process_exit(JNIEnv *env, jobject); - jobject native_to_java_process(msg_process_t process); /** @@ -53,7 +60,7 @@ void jprocess_delete_global_ref(jobject jprocess, JNIEnv * env); /** * This function waits for a java process to terminate. * - * @param jprocess The java process ot wait for. + * @param jprocess The java process to wait for. * @param env The env of the current thread * * @exception If the class Process is not found the function throws the ClassNotFoundException. If the method @@ -228,6 +235,7 @@ JNIEXPORT void JNICALL Java_org_simgrid_msg_Process_kill (JNIEnv *, jobject); */ JNIEXPORT void JNICALL Java_org_simgrid_msg_Process_migrate (JNIEnv *, jobject, jobject); +JNIEXPORT void JNICALL Java_org_simgrid_msg_Process_yield(JNIEnv* env, jclass cls); /* * Class org_simgrid_msg_Process * Method setKillTime