protected boolean finished = false;
/**
* Represents the bind between the java comm and the
- * native C comm. You must never access it, since it is
+ * native C comm. You must never access it, since it is
* automatically set.
*/
private long bind = 0;
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.