Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make cancelling a non-running task a no-op
authorChristophe Thiéry <christopho128@gmail.com>
Fri, 14 Oct 2011 15:09:00 +0000 (17:09 +0200)
committerChristophe Thiéry <christopho128@gmail.com>
Fri, 14 Oct 2011 15:09:00 +0000 (17:09 +0200)
src/msg/task.c

index b0df136..877467c 100644 (file)
@@ -200,13 +200,6 @@ MSG_error_t MSG_task_cancel(m_task_t task)
     SIMIX_req_comm_cancel(task->simdata->comm);
     task->simdata->isused = 0;
   }
-  else {
-    static int warned = 0;
-    if (!warned) {
-      XBT_WARN("Cannot cancel a non-running task");
-      warned = 1;
-    }
-  }
   return MSG_OK;
 }