Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Elaborated on error messages in src/msg/msg_process.c
[simgrid.git] / examples / msg / mc / bugged2_liveness.c
index 7117b49..3cdb50a 100644 (file)
@@ -1,10 +1,16 @@
+/* Copyright (c) 2012-2014. The SimGrid Team.
+ * All rights reserved.                                                     */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
 /***************************** Bugged2 ****************************************/
 /* This example implements a centralized mutual exclusion algorithm.          */
 /* One client stay always in critical section                                 */
 /* LTL property checked : !(GFcs)                                             */
 /******************************************************************************/
 
-#include "msg/msg.h"
+#include "simgrid/msg.h"
 #include "mc/mc.h"
 #include "xbt/automaton.h"
 #include "bugged2_liveness.h"
@@ -35,7 +41,6 @@ int coordinator(int argc, char *argv[])
         XBT_INFO("CS already used.");
         msg_task_t answer = MSG_task_create("not grant", 0, 1000, NULL);
         MSG_task_send(answer, req);
-        MC_compare();
       } else {                  // can serve it immediatly
         XBT_INFO("CS idle. Grant immediatly");
         msg_task_t answer = MSG_task_create("grant", 0, 1000, NULL);