Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make MSG_TASK_CANCELLED deprecated, replace it by MSG_TASK_CANCELED
authorChristophe Thiéry <christopho128@gmail.com>
Mon, 14 Nov 2011 10:22:08 +0000 (11:22 +0100)
committerChristophe Thiéry <christopho128@gmail.com>
Mon, 14 Nov 2011 17:17:38 +0000 (18:17 +0100)
include/msg/datatypes.h
include/msg/msg.h
src/msg/msg_gos.c
src/simix/smx_host.c

index 1954c7d..1d02d0a 100644 (file)
@@ -131,9 +131,10 @@ typedef enum {
   MSG_HOST_FAILURE = 4,       /**< @brief System shutdown. The host on which you are
       running has just been rebooted. Free your datastructures and
       return now !*/
   MSG_HOST_FAILURE = 4,       /**< @brief System shutdown. The host on which you are
       running has just been rebooted. Free your datastructures and
       return now !*/
-  MSG_TASK_CANCELLED = 8,     /**< @brief Canceled task. This task has been canceled by somebody!*/
+  MSG_TASK_CANCELED = 8,     /**< @brief Canceled task. This task has been canceled by somebody!*/
 } MSG_error_t;
 /** @} */
 
 } MSG_error_t;
 /** @} */
 
+
 SG_END_DECL()
 #endif
 SG_END_DECL()
 #endif
index f84cbfd..232546d 100644 (file)
@@ -236,6 +236,7 @@ MSG_error_t MSG_action_trace_run(char *path);
         MSG_mailbox_put_with_timeout(mailbox, task, timeout)
 
 #define MSG_process_change_host(h) MSG_process_migrate(MSG_process_self(),h);
         MSG_mailbox_put_with_timeout(mailbox, task, timeout)
 
 #define MSG_process_change_host(h) MSG_process_migrate(MSG_process_self(),h);
+#define MSG_TASK_CANCELLED MSG_TASK_CANCELED
 #endif
 
 #include "instr/instr.h"
 #endif
 
 #include "instr/instr.h"
index a1494c0..3200988 100644 (file)
@@ -103,7 +103,7 @@ MSG_error_t MSG_task_execute(m_task_t task)
 #ifdef HAVE_TRACING
     TRACE_msg_task_execute_end(task);
 #endif
 #ifdef HAVE_TRACING
     TRACE_msg_task_execute_end(task);
 #endif
-    MSG_RETURN(MSG_TASK_CANCELLED);
+    MSG_RETURN(MSG_TASK_CANCELED);
   }
 }
 
   }
 }
 
@@ -214,7 +214,7 @@ MSG_error_t MSG_parallel_task_execute(m_task_t task)
     /* action ended, set comm and compute = NULL, the actions is already destroyed in the main function */
     simdata->comm = NULL;
     simdata->compute = NULL;
     /* action ended, set comm and compute = NULL, the actions is already destroyed in the main function */
     simdata->comm = NULL;
     simdata->compute = NULL;
-    MSG_RETURN(MSG_TASK_CANCELLED);
+    MSG_RETURN(MSG_TASK_CANCELED);
   }
 }
 
   }
 }
 
index 7eac4a4..451ddcc 100644 (file)
@@ -381,7 +381,7 @@ void SIMIX_post_host_execute(smx_action_t action)
   /* FIXME: check if the host running the action failed or not*/
   /*if(surf_workstation_model->extension.workstation.get_state(action->host->host))*/
 
   /* FIXME: check if the host running the action failed or not*/
   /*if(surf_workstation_model->extension.workstation.get_state(action->host->host))*/
 
-  /* If the host running the action didn't fail, then the action was cancelled */
+  /* If the host running the action didn't fail, then the action was canceled */
   if (surf_workstation_model->action_state_get(action->execution.surf_exec) == SURF_ACTION_FAILED)
      action->state = SIMIX_CANCELED;
   else
   if (surf_workstation_model->action_state_get(action->execution.surf_exec) == SURF_ACTION_FAILED)
      action->state = SIMIX_CANCELED;
   else