Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add dsend and simulatedSleep to the binding, and add an example
[simgrid.git] / src / jmsg.h
index bfa02c1..9fdbaeb 100644 (file)
@@ -32,7 +32,7 @@ Java_org_simgrid_msg_MsgNative_processCreate(JNIEnv * env, jclass cls,
  * Signature   (Lsimgrid/msg/Process;)V
  */
 JNIEXPORT void JNICALL
-Java_org_simgrid_msg_MsgNative_processSuspend(JNIEnv * env, jclass cls,
+Java_org_simgrid_msg_MsgNative_processSuspend(JNIEnv * env, jobject obj,
                                           jobject jprocess);
 
 /*
@@ -43,6 +43,12 @@ Java_org_simgrid_msg_MsgNative_processSuspend(JNIEnv * env, jclass cls,
 JNIEXPORT void JNICALL Java_org_simgrid_msg_MsgNative_processResume
     (JNIEnv *, jclass, jobject);
 
+
+JNIEXPORT void JNICALL
+Java_org_simgrid_msg_Process_simulatedSleep(JNIEnv * env, jclass cls,
+                                           jdouble jmillis);
+
+
 /*
  * Class               simgrid_msg_Msg
  * Method              processIsSuspended
@@ -273,17 +279,14 @@ JNIEXPORT jobject JNICALL
     Java_org_simgrid_msg_MsgNative_taskReceive
     (JNIEnv *, jclass, jstring, jdouble, jobject);
 
+JNIEXPORT void JNICALL
+Java_org_simgrid_msg_MsgNative_taskDSend(JNIEnv * env, jclass cls,
+                                    jstring jalias, jobject jtask);
+
 JNIEXPORT void JNICALL
     Java_org_simgrid_msg_MsgNative_taskSend
     (JNIEnv *, jclass, jstring, jobject, jdouble);
 
-/*
- * Class               simgrid_msg_Msg
- * Method              getErrCode
- * Signature   ()I
- */
-JNIEXPORT jint JNICALL Java_org_simgrid_msg_Msg_getErrCode(JNIEnv *, jclass);
-
 /*
  * Class               simgrid_msg_Msg
  * Method              getClock