X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7e4034811b98b05387a4570e36325e557bcd6bd1..409cad633c6b5032649e7a54f6311e41c6178899:/src/msg/gos.c diff --git a/src/msg/gos.c b/src/msg/gos.c index 9ae49b2448..9dcfb54cd9 100644 --- a/src/msg/gos.c +++ b/src/msg/gos.c @@ -64,7 +64,7 @@ MSG_error_t MSG_task_get(m_task_t * task, DEBUG2("Waiting for a task on channel %d (%s)", channel,h->name); - while ((t = xbt_fifo_pop(h_simdata->mbox[channel])) == NULL) { + while ((t = xbt_fifo_shift(h_simdata->mbox[channel])) == NULL) { xbt_assert2(!(h_simdata->sleeping[channel]), "A process (%s(%d)) is already blocked on this channel", h_simdata->sleeping[channel]->name,