int MSG_task_Iprobe(m_channel_t channel)
{
m_host_t h = NULL;
- simdata_host_t h_simdata = NULL;
xbt_assert1((channel>=0) && (channel < msg_global->max_channel),"Invalid channel %d",channel);
DEBUG2("Probing on channel %d (%s)", channel,h->name);
CHECK_HOST();
h = MSG_host_self();
- h_simdata = h->simdata;
- return(xbt_fifo_get_first_item(h_simdata->mbox[channel])!=NULL);
+ return(xbt_fifo_get_first_item(h->simdata->mbox[channel])!=NULL);
}
/** \ingroup msg_gos_functions
int MSG_task_probe_from(m_channel_t channel)
{
m_host_t h = NULL;
- simdata_host_t h_simdata = NULL;
xbt_fifo_item_t item;
m_task_t t;
xbt_assert1((channel>=0) && (channel < msg_global->max_channel),"Invalid channel %d",channel);
CHECK_HOST();
h = MSG_host_self();
- h_simdata = h->simdata;
DEBUG2("Probing on channel %d (%s)", channel,h->name);
*/
int MSG_task_probe_from_host(int channel, m_host_t host)
{
- simdata_host_t h_simdata = NULL;
xbt_fifo_item_t item;
m_task_t t;
int count = 0;
xbt_assert1((channel>=0) && (channel < msg_global->max_channel),"Invalid channel %d",channel);
CHECK_HOST();
h = MSG_host_self();
- h_simdata = h->simdata;
DEBUG2("Probing on channel %d (%s)", channel,h->name);
m_process_t process = MSG_process_self();
m_task_t dummy = NULL;
simdata_task_t simdata = NULL;
+
+ xbt_assert1(nb_sec>=0,"Invalid duration %g",nb_sec);
CHECK_HOST();
dummy = MSG_task_create("MSG_sleep", nb_sec, 0.0, NULL);