Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Wait for all the context to finish it's execution
authorcristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 8 Dec 2010 13:54:47 +0000 (13:54 +0000)
committercristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 8 Dec 2010 13:54:47 +0000 (13:54 +0000)
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

index c23084b..9b1fbdf 100644 (file)
@@ -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);
   }
   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)
 }
 
 smx_context_t smx_ctx_sysv_self_parallel(void)