Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
"Original" version
[simgrid.git] / src / msg / gos.c
index 76d4dac..dc30683 100644 (file)
@@ -53,7 +53,10 @@ static MSG_error_t __MSG_task_get_with_time_out_from_host(m_task_t * task,
        xbt_fifo_foreach(h->simdata->mbox[channel],item,t,m_task_t) {
          if(t->simdata->source==host) break;
        }
-       if(item) break;
+       if(item) {
+         xbt_fifo_remove_item(h->simdata->mbox[channel],item);
+         break;
+       } 
       }
     }
                                                       
@@ -555,11 +558,11 @@ MSG_error_t __MSG_wait_for_computation(m_process_t process, m_task_t task)
  * \param name a name for the object. It is for user-level information
    and can be NULL.
  * \param host_nb the number of hosts implied in the parallel task.
- * \param host_list an array of #host_nb m_host_t.
- * \param computation_amount an array of #host_nb
+ * \param host_list an array of \p host_nb m_host_t.
+ * \param computation_amount an array of \p host_nb
    doubles. computation_amount[i] is the total number of operations
    that have to be performed on host_list[i].
- * \param communication_amount an array of #host_nb*#host_nb doubles.
+ * \param communication_amount an array of \p host_nb* \p host_nb doubles.
  * \param data a pointer to any data may want to attach to the new
    object.  It is for user-level information and can be NULL. It can
    be retrieved with the function \ref MSG_task_get_data.