Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove the now useless Process.ifInterruptedStop()
[simgrid.git] / org / simgrid / msg / Task.java
index 907c26f..0e00aff 100644 (file)
@@ -68,45 +68,39 @@ public class Task {
      * @return
      */
        public String getName() {
-               Process.ifInterruptedStop();
                return MsgNative.taskGetName(this);
        }
        /** Gets the sender of the task */ 
        Process getSender() {
-               Process.ifInterruptedStop();
                return MsgNative.taskGetSender(this);
        }
     /** Gets the source of the task
      * @return
      */
        public Host getSource()  {
-               Process.ifInterruptedStop();
                return MsgNative.taskGetSource(this);
        }
     /** Gets the computing amount of the task
      * @return
      */
        public double getComputeDuration() {
-               Process.ifInterruptedStop();
                return MsgNative.taskGetComputeDuration(this);
        }
     /** Gets the remaining computation of the task
      * @return
      */
        public double getRemainingDuration() {
-               Process.ifInterruptedStop();
                return MsgNative.taskGetRemainingDuration(this);
        }
        /**
         * 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.
         *
         * @param priority      The new priority of the task.
         */ 
        public void setPriority(double priority) {
-               Process.ifInterruptedStop();
                MsgNative.taskSetPriority(this, priority);
        }
        /* *                       * *
@@ -125,7 +119,6 @@ public class Task {
      * @throws TaskCancelledException
      */
        public void execute() throws HostFailureException,TaskCancelledException {
-               Process.ifInterruptedStop();
                MsgNative.taskExecute(this);
        }
        /**
@@ -133,7 +126,6 @@ public class Task {
         *
         */ 
        public void cancel()  {
-               Process.ifInterruptedStop();
                MsgNative.taskCancel(this);
        }
        /** Deletes a task.
@@ -141,7 +133,6 @@ public class Task {
         * @exception                   NativeException if the destruction failed.
         */ 
        protected void finalize() throws NativeException {
-               Process.ifInterruptedStop();
                if (this.bind != 0)
                        MsgNative.taskDestroy(this);
        }
@@ -163,7 +154,6 @@ public class Task {
         * @throws TransferFailureException 
         */
        public void send(String mailbox) throws TransferFailureException, HostFailureException, TimeoutException {
-               Process.ifInterruptedStop();
                MsgNative.taskSend(mailbox, this, -1);
        } 
 
@@ -178,7 +168,6 @@ public class Task {
         * @throws TransferFailureException 
         */
        public void send(String mailbox, double timeout) throws NativeException, TransferFailureException, HostFailureException, TimeoutException {
-               Process.ifInterruptedStop();
                MsgNative.taskSend(mailbox, this, timeout);
        } 
 
@@ -192,7 +181,6 @@ public class Task {
      * @throws TimeoutException
         */
        public void sendBounded(String alias, double maxrate) throws TransferFailureException, HostFailureException, TimeoutException {
-               Process.ifInterruptedStop();
                MsgNative.taskSendBounded(alias, this, maxrate);
        } 
 
@@ -207,7 +195,6 @@ public class Task {
         */
 
        public static Task receive(String mailbox) throws TransferFailureException, HostFailureException, TimeoutException {
-               Process.ifInterruptedStop();
                return MsgNative.taskReceive(mailbox, -1.0, null);
        }
 
@@ -222,7 +209,6 @@ public class Task {
      * @throws TimeoutException
         */
        public static Task receive(String mailbox, double timeout) throws  TransferFailureException, HostFailureException, TimeoutException {
-               Process.ifInterruptedStop();
                return MsgNative.taskReceive(mailbox, timeout, null);
        }
 
@@ -238,7 +224,6 @@ public class Task {
         */
 
        public static Task receive(String mailbox, Host host) throws TransferFailureException, HostFailureException, TimeoutException {
-               Process.ifInterruptedStop();
                return MsgNative.taskReceive(mailbox, -1.0, host);
        }
 
@@ -254,7 +239,6 @@ public class Task {
      * @throws TimeoutException
         */
        public static Task receive(String mailbox, double timeout, Host host) throws TransferFailureException, HostFailureException, TimeoutException {
-               Process.ifInterruptedStop();
                return MsgNative.taskReceive(mailbox, timeout, host);
        }
 
@@ -266,7 +250,6 @@ public class Task {
      * @return
      */
        public static int listenFrom(String mailbox)  {
-               Process.ifInterruptedStop();
                return MsgNative.taskListenFrom(mailbox);
        }
        /**
@@ -277,7 +260,6 @@ public class Task {
      * @return
      */
        public static boolean listen(String mailbox)   {
-               Process.ifInterruptedStop();
                return MsgNative.taskListen(mailbox);
        }
 
@@ -290,7 +272,6 @@ public class Task {
      * @return
      */
        public static int listenFromHost(String alias, Host host)   {
-               Process.ifInterruptedStop();
                return MsgNative.taskListenFromHost(alias, host);
        }
 }