From 5e3d0bb6a421978c079cd454fb9d79709748efb6 Mon Sep 17 00:00:00 2001 From: Marion Guthmuller Date: Wed, 2 Oct 2013 16:18:06 +0200 Subject: [PATCH] model-checker : fix centralized mutex example --- examples/msg/mc/centralized_mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/msg/mc/centralized_mutex.c b/examples/msg/mc/centralized_mutex.c index 64008b4e09..3403c88286 100644 --- a/examples/msg/mc/centralized_mutex.c +++ b/examples/msg/mc/centralized_mutex.c @@ -45,7 +45,7 @@ int coordinator(int argc, char *argv[]) XBT_INFO("CS release. Grant to queued requests (queue size: %lu)", xbt_dynar_length(requests)); char *req; - xbt_dynar_pop(requests, &req); + xbt_dynar_shift(requests, &req); MSG_task_send(MSG_task_create("grant", 0, 1000, NULL), req); todo--; } else { // nobody wants it -- 2.20.1