Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
SIMIX_CANCELED is a more adapted state in SIMIX_comm_cancel()
authorChristophe Thiéry <christopho128@gmail.com>
Thu, 20 Oct 2011 06:39:03 +0000 (08:39 +0200)
committerChristophe Thiéry <christopho128@gmail.com>
Thu, 20 Oct 2011 06:39:03 +0000 (08:39 +0200)
src/simix/smx_network.c

index 6b4922f..d5d4631 100644 (file)
@@ -716,7 +716,7 @@ void SIMIX_comm_cancel(smx_action_t action)
   /* so remove from it and delete it */
   if (action->state == SIMIX_WAITING) {
     SIMIX_rdv_remove(action->comm.rdv, action);
   /* so remove from it and delete it */
   if (action->state == SIMIX_WAITING) {
     SIMIX_rdv_remove(action->comm.rdv, action);
-    action->state = SIMIX_FAILED;
+    action->state = SIMIX_CANCELED;
   }
   else if (!MC_IS_ENABLED
       && (action->state == SIMIX_READY || action->state == SIMIX_RUNNING)) {
   }
   else if (!MC_IS_ENABLED
       && (action->state == SIMIX_READY || action->state == SIMIX_RUNNING)) {