X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/74e53067d0c00064ef01253c0e9f335f1f08ce5a..bc07ec1b28653016934209a9e84e249eebf703f0:/src/xbt/parmap.c?ds=inline diff --git a/src/xbt/parmap.c b/src/xbt/parmap.c index 4e79b71bb1..8a86b36384 100644 --- a/src/xbt/parmap.c +++ b/src/xbt/parmap.c @@ -143,8 +143,9 @@ static void *xbt_parmap_worker_main(void *arg) XBT_DEBUG("Worker got a job"); void* work = xbt_parmap_next(parmap); - if (work != NULL) { + while (work != NULL) { parmap->fun(work); + work = xbt_parmap_next(parmap); } XBT_DEBUG("Worker has finished");