From 5dcd4aa6c32ea714a5da23840de597cfc04b90bd Mon Sep 17 00:00:00 2001 From: cristianrosa Date: Wed, 8 Dec 2010 13:54:47 +0000 Subject: [PATCH 1/1] 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 --- src/simix/smx_context_sysv.c | 1 + 1 file changed, 1 insertion(+) 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) -- 2.20.1