From: cristianrosa Date: Wed, 8 Dec 2010 13:54:47 +0000 (+0000) Subject: Wait for all the context to finish it's execution X-Git-Tag: v3.6_beta2~835 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5dcd4aa6c32ea714a5da23840de597cfc04b90bd?hp=97b0ef0d9c81332efcddb73584173f47cf92ea95 Wait for all the context to finish it's execution git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9088 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/simix/smx_context_sysv.c b/src/simix/smx_context_sysv.c index c23084b53b..9b1fbdf7ea 100644 --- a/src/simix/smx_context_sysv.c +++ b/src/simix/smx_context_sysv.c @@ -189,6 +189,7 @@ void smx_ctx_sysv_runall_parallel(xbt_swag_t processes) while((process = xbt_swag_extract(processes))){ xbt_tpool_queue_job(tpool, (void_f_pvoid_t)smx_ctx_sysv_resume_parallel, process->context); } + xbt_tpool_wait_all(tpool); } smx_context_t smx_ctx_sysv_self_parallel(void)