Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix bug in java binding for Comm.waitAny
authorKevin Piotrkowski <kevin.piotrkowski@avature.net>
Tue, 12 Dec 2017 15:06:06 +0000 (12:06 -0300)
committerKevin Piotrkowski <kevin.piotrkowski@avature.net>
Tue, 12 Dec 2017 15:06:06 +0000 (12:06 -0300)
src/bindings/java/org/simgrid/msg/Comm.java

index 99b889d..12e6a11 100644 (file)
@@ -59,7 +59,7 @@ public class Comm {
                waitAll(comms, -1.);
        }
        /** Wait any of the communications, and return the rank of the terminating comm */
                waitAll(comms, -1.);
        }
        /** Wait any of the communications, and return the rank of the terminating comm */
-       public static native void waitAny(Comm[] comms) throws TransferFailureException, HostFailureException, TimeoutException;
+       public static native int waitAny(Comm[] comms) throws TransferFailureException, HostFailureException, TimeoutException;
        /**
         * Returns the task associated with the communication.
         * if the communication isn't finished yet, will return null.
        /**
         * Returns the task associated with the communication.
         * if the communication isn't finished yet, will return null.