Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : fix bugged mutual exclusion example in SMPI
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Sun, 29 Sep 2013 08:17:56 +0000 (10:17 +0200)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Sun, 29 Sep 2013 08:20:52 +0000 (10:20 +0200)
examples/smpi/mc/bugged1_liveness.c

index f7dab1b..4b5b067 100644 (file)
@@ -71,6 +71,7 @@ int main(int argc, char **argv){
             CS_used = 1;
           }else{
             xbt_dynar_push(requests, &recv_buff);
             CS_used = 1;
           }else{
             xbt_dynar_push(requests, &recv_buff);
+            CS_used = 0;
           }
         }else{
           printf("CS release. Resource now idle.\n");
           }
         }else{
           printf("CS release. Resource now idle.\n");