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;
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);
/**
* This function delete a global reference to a java process instance.
* If the java process is alive the function joins it and stops it before.
*
- * @param The global refernce to delete.
- * @param env The env of the current thread
+ * @param jprocess The global refernce to delete.
+ * @param env The env of the current thread
*
* @see jprocess_join()
* @see jprocess_exit()
/**
* 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
*/
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