X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b7d7072994877985a12c99591ad5c34dac347a8f..cf83c030fca0c16732983caee233c756c30bd66e:/src/xbt/parmap.c diff --git a/src/xbt/parmap.c b/src/xbt/parmap.c index 8219493515..d163965fe5 100644 --- a/src/xbt/parmap.c +++ b/src/xbt/parmap.c @@ -416,8 +416,10 @@ static void xbt_parmap_futex_worker_wait(xbt_parmap_t parmap, unsigned round) { unsigned work = parmap->work; /* wait for more work */ - if (work != round) + while (work != round) { futex_wait(&parmap->work, work); + work = parmap->work; + } } #endif