Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill MSG_WARNING and MSG_FATAL return codes
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 23 Mar 2010 12:26:26 +0000 (12:26 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 23 Mar 2010 12:26:26 +0000 (12:26 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7309 48e7efb5-ca39-0410-a469-dd3cf9ba447f

ChangeLog
include/msg/datatypes.h
src/msg/task.c

index ab4d2b2..77072d8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -27,6 +27,8 @@ SimGrid (3.3.5-svn) unstable; urgency=low
       and call MSG_action_trace_run(NULL)
     You can still have one merged file for each processes.
   * Kill the MSG_paje_output() function. It's a noop since 2 years.
+  * Kill MSG_WARNING and MSG_FATAL return codes: they were not used
+    anywere in source.
  SIMIX:
   * add a SIMIX_sem_get_capacity() function
       
index 8dd4bcc..e80eb71 100644 (file)
@@ -114,27 +114,17 @@ SG_BEGIN_DECL()
 /** @brief Error handling 
     @ingroup m_datatypes_management 
     @{
-*/
+*/ /* Keep these code as binary values: java bindings manipulate | of these values */
      typedef enum {
-       MSG_OK = 0,
-               /**< @brief Everything is right. Keep on going this way ! */
-       MSG_WARNING,
-               /**< @brief Mmmh! Something must be not perfectly clean. But I
-      may be a paranoid freak... ! */
+       MSG_OK = 0,            /**< @brief Everything is right. Keep on going this way ! */
        MSG_TIMEOUT_FAILURE=1, /**< @brief nothing good happened before the timer you provided elapsed */
-       MSG_TRANSFER_FAILURE=2,
-                        /**< @brief There has been a problem during you task
+       MSG_TRANSFER_FAILURE=2,/**< @brief There has been a problem during you task
       transfer. Either the network is down or the remote host has been
       shutdown. */
-       MSG_HOST_FAILURE=4,
-                    /**< @brief System shutdown. The host on which you are
+       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 Cancelled task. This task has been cancelled 
-                       by somebody!*/
-       MSG_FATAL
-            /**< @brief You've done something wrong. You'd better look at it... */
+       MSG_TASK_CANCELLED=8,  /**< @brief Canceled task. This task has been canceled by somebody!*/
      } MSG_error_t;
 /** @} */
 
index a54b159..067793c 100644 (file)
@@ -178,8 +178,7 @@ MSG_error_t MSG_task_cancel(m_task_t task)
     SIMIX_communication_cancel(task->simdata->comm);
     return MSG_OK;
   }
-
-  return MSG_FATAL;
+  THROW_IMPOSSIBLE;
 }
 
 /** \ingroup m_task_management