Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add waitCompletion to Comm as a binding of MSG_comm_wait
[simgrid.git] / org / simgrid / msg / Comm.java
index 0aae5c4..899d094 100644 (file)
@@ -53,6 +53,11 @@ public class Comm {
         * raise an exception.
         */
        public native boolean test() throws TransferFailureException, HostFailureException, TimeoutException ;
+       /**
+        * Wait for the completion of the communication.
+        * Throws an exception if there were an error in the communication.
+        */
+       public native void waitCompletion(double timeout) throws TransferFailureException, HostFailureException, TimeoutException;
        /**
         * Returns the task associated with the communication.
         * if the communication isn't finished yet, will return null.