From 409cad633c6b5032649e7a54f6311e41c6178899 Mon Sep 17 00:00:00 2001 From: alegrand Date: Fri, 25 Mar 2005 21:46:39 +0000 Subject: [PATCH 1/1] 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 --- src/msg/gos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.20.1