Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
SIMIX: clean the processes trash after each scheduling round.
authorChristophe Thiéry <christopho128@gmail.com>
Mon, 25 Jul 2011 12:17:18 +0000 (14:17 +0200)
committerChristophe Thiéry <christopho128@gmail.com>
Mon, 25 Jul 2011 12:17:18 +0000 (14:17 +0200)
src/simix/smx_global.c

index b4de7e8..7867902 100644 (file)
@@ -234,6 +234,10 @@ void SIMIX_run(void)
           SIMIX_request_post((smx_action_t) action->data);
       }
     }
           SIMIX_request_post((smx_action_t) action->data);
       }
     }
+
+    /* Clean processes to destroy */
+    SIMIX_process_empty_trash();
+
   } while (time != -1.0);
 
   if (xbt_swag_size(simix_global->process_list) != 0) {
   } while (time != -1.0);
 
   if (xbt_swag_size(simix_global->process_list) != 0) {