Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : fix bugged1_liveness example
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Thu, 19 Sep 2013 15:39:11 +0000 (17:39 +0200)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Sat, 21 Sep 2013 20:50:29 +0000 (22:50 +0200)
examples/msg/mc/bugged1_liveness.c

index 19f8d61..6f74bf2 100644 (file)
@@ -56,6 +56,7 @@ int coordinator(int argc, char *argv[])
           MSG_task_send(MSG_task_create("grant", 0, 1000, NULL), req);
         }else{
           xbt_dynar_push(requests, &req);
           MSG_task_send(MSG_task_create("grant", 0, 1000, NULL), req);
         }else{
           xbt_dynar_push(requests, &req);
+          CS_used = 0;
         }
       }else{
         XBT_INFO("CS release. resource now idle");
         }
       }else{
         XBT_INFO("CS release. resource now idle");