X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0e883305cea5e4b5738dd67fb1afa00ba3fc71a7..407a83cbc983ae0d5773c1a418b1c4e580caa37a:/src/msg/gos.c diff --git a/src/msg/gos.c b/src/msg/gos.c index e2382d2095..4d17772cfd 100644 --- a/src/msg/gos.c +++ b/src/msg/gos.c @@ -16,7 +16,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(gos, msg, * 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) @@ -233,7 +233,7 @@ MSG_error_t MSG_channel_select_from(m_channel_t channel, double max_duration, 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); @@ -499,12 +499,13 @@ MSG_error_t MSG_process_sleep(double nb_sec) * \brief Return the number of MSG tasks currently running on a * the host of the current running process. */ -int MSG_get_msgload(void) +static int MSG_get_msgload(void) { m_process_t process; CHECK_HOST(); + xbt_assert0(0, "This function is still to be specified correctly (what do you mean by 'load', exactly?). In the meantime, please don't use it"); process = MSG_process_self(); return xbt_fifo_size(process->simdata->host->simdata->process_list); }