From: alegrand Date: Fri, 25 Mar 2005 21:46:39 +0000 (+0000) Subject: MSG_task_get is now fair... X-Git-Tag: v3.3~4178 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/409cad633c6b5032649e7a54f6311e41c6178899?hp=7e4034811b98b05387a4570e36325e557bcd6bd1;ds=sidebyside MSG_task_get is now fair... git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1176 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- 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,