* by an agent for handling some task.
*/
-/** \ingroup msg_gos_functions
+/* \ingroup msg_gos_functions
* \brief This function is now deprecated and useless. Please stop using it.
*/
MSG_error_t MSG_process_start(m_process_t process)
* \param channel the channel on which the agent should be
listening. This value has to be >=0 and < than the maximal
number of channels fixed with MSG_set_channel_number().
- * \param timeout the maximum time to wait for a task before giving
+ * \param max_duration the maximum time to wait for a task before giving
up. In such a case, \a task will not be modified and will still be
equal to \c NULL when returning.
* \return #MSG_FATAL if \a task is equal to \c NULL, #MSG_WARNING
h_simdata = h->simdata;
DEBUG2("Probing on channel %d (%s)", channel,h->name);
- while((item = xbt_fifo_getFirstItem(h->simdata->mbox[channel]))) {
+ while(!(item = xbt_fifo_getFirstItem(h->simdata->mbox[channel]))) {
if(max_duration>0) {
if(!first_time) {
MSG_RETURN(MSG_OK);