Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove the now useless Process.ifInterruptedStop()
[simgrid.git] / org / simgrid / msg / Task.java
index 830805e..0e00aff 100644 (file)
@@ -94,7 +94,7 @@ public class Task {
        }
        /**
         * This method sets the priority of the computation of the task.
-        * The priority doesn't affect the transfert rate. For example a
+        * The priority doesn't affect the transfer rate. For example a
         * priority of 2 will make the task receive two times more cpu than
         * the other ones.
         *
@@ -137,6 +137,14 @@ public class Task {
                        MsgNative.taskDestroy(this);
        }
 
+       /** Send the task asynchronously on the mailbox identified by the specified name, 
+        *  with no way to retrieve whether the communication succeeded or not
+        * 
+        */
+       public void dsend(String mailbox) {
+               MsgNative.taskDSend(mailbox, this);
+       } 
+       
        /**
         * Sends the task on the mailbox identified by the specified name 
         *