Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Introduce a MSG_TIMEOUT_FAILURE return code and use it for communication timeouts...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 16 Oct 2009 07:37:44 +0000 (07:37 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 16 Oct 2009 07:37:44 +0000 (07:37 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6797 48e7efb5-ca39-0410-a469-dd3cf9ba447f

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

index 533f11d..24dd994 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -107,6 +107,8 @@ SimGrid (3.3.4) unstable; urgency=low
  * Allow to compile from the SVN with automake 1.11
  * Fix some problems when using the "start_time" tag in deployment XMLs.
  * Fix #8569: XBT/synchro.h has redundant declarations
+ * Fix #8563: MSG return values and exceptions
+   Introduce a MSG_TIMEOUT_FAILURE return code and use it consistently.
 
  -- Da SimGrid team <simgrid-devel@lists.gforge.inria.fr> 
 
index c9e8531..3187380 100644 (file)
@@ -121,6 +121,7 @@ SG_BEGIN_DECL()
        MSG_WARNING,
                /**< @brief Mmmh! Something must be not perfectly clean. But I
       may be a paranoid freak... ! */
+       MSG_TIMEOUT_FAILURE, /**< @brief nothing good happened before the timer you provided elapsed */
        MSG_TRANSFER_FAILURE,
                         /**< @brief There has been a problem during you task
       transfer. Either the network is down or the remote host has been
index f7f3445..3425a41 100644 (file)
@@ -126,7 +126,7 @@ MSG_mailbox_get_task_ext(msg_mailbox_t mailbox, m_task_t *task, m_host_t host,
     CRITICAL0
       ("MSG_task_get() was asked to write in a non empty task struct.");
 
-  /* We no loger support getting a task from a specific host */
+  /* We no longer support getting a task from a specific host */
   if(host)
     THROW_UNIMPLEMENTED;
 
@@ -144,7 +144,7 @@ MSG_mailbox_get_task_ext(msg_mailbox_t mailbox, m_task_t *task, m_host_t host,
         ret = MSG_TRANSFER_FAILURE;
         break;
       case timeout_error:
-        ret = MSG_TRANSFER_FAILURE;
+        ret = MSG_TIMEOUT_FAILURE;
         break;      
       default:
         xbt_die("Unhandled SIMIX network exception");
@@ -198,7 +198,7 @@ MSG_mailbox_put_with_timeout(msg_mailbox_t mailbox, m_task_t task,
         ret = MSG_TRANSFER_FAILURE;
         break;
       case timeout_error:
-        ret = MSG_TRANSFER_FAILURE;
+        ret = MSG_TIMEOUT_FAILURE;
         break;
       default:
         xbt_die("Unhandled SIMIX network exception");