Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Avoid timeouts on very large platforms by blocking for ever
[simgrid.git] / examples / gras / mutual_exclusion / simple_token / simple_token.c
index 7a0e2d4..f0d8fcb 100644 (file)
@@ -95,7 +95,7 @@ static int node_cb_stoken_handler(gras_msg_cb_ctx_t ctx, void *payload) {
   if (globals->remaining_loop == -1 && globals->create) {
     double elapsed = gras_os_time() - globals->start_time; 
     INFO1("Shut down the token-ring. There was %d hops.",msg);
-    INFO1("Elapsed time: %g", elapsed);
+    VERB1("Elapsed time: %g", elapsed);
   }
 
   /* 9. Tell GRAS that we consummed this message */
@@ -175,7 +175,7 @@ int node (int argc,char *argv[]) {
   
   /* 8. Wait up to 10 seconds for an incomming message to handle */
   while (globals->remaining_loop > (globals->create ? -1 : 0)) {
-    gras_msg_handle(10.0);
+    gras_msg_handle(-1);
   
     DEBUG1("looping (remaining_loop=%d)", globals->remaining_loop);
   }