From: Christophe ThiƩry Date: Thu, 19 Jan 2012 14:22:31 +0000 (+0100) Subject: A for was a bit too much here. It should be readable now. X-Git-Tag: exp_20120216~119^2~71 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/fc7ac35fd564108e7661f0e18dca7f01a6d3d429 A for was a bit too much here. It should be readable now. --- diff --git a/src/simix/smx_global.c b/src/simix/smx_global.c index 2a3a403798..9474cb3b1a 100644 --- a/src/simix/smx_global.c +++ b/src/simix/smx_global.c @@ -225,16 +225,14 @@ void SIMIX_run(void) if (timer->func) ((void (*)(void*))timer->func)(timer->args); } - /* Wake up all process waiting for the action finish */ + /* Wake up all processes waiting for a Surf action to finish */ xbt_dynar_foreach(model_list, iter, model) { - for (set = model->states.failed_action_set; - set; - set = (set == model->states.failed_action_set) - ? model->states.done_action_set - : NULL) { - while ((action = xbt_swag_extract(set))) - SIMIX_request_post((smx_action_t) action->data); - } + set = model->states.failed_action_set; + while ((action = xbt_swag_extract(set))) + SIMIX_request_post((smx_action_t) action->data); + set = model->states.done_action_set; + while ((action = xbt_swag_extract(set))) + SIMIX_request_post((smx_action_t) action->data); } /* Clean processes to destroy */