Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add isendBounded for Task
[simgrid.git] / org / simgrid / msg / Task.java
index e5e5fbf..7cd0d87 100644 (file)
@@ -225,7 +225,13 @@ public class Task {
         * Sends the task on the mailbox asynchronously
         */
        public native Comm isend(String mailbox);
+
+       /**
+        * Sends the task on the mailbox asynchronously (capping the sending rate to \a maxrate)
+        */
+       public native Comm isendBounded(String mailbox, double maxrate);
        
+
        /**
         * Starts listening for receiving a task from an asynchronous communication
         * @param mailbox
@@ -289,6 +295,7 @@ public class Task {
         */
        public static native void nativeInit();
        static {
+               Msg.nativeInit();
                nativeInit();
        }