A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
set value -1 in unsigned short cannot work fine ...
[simgrid.git]
/
src
/
xbt
/
parmap.c
diff --git
a/src/xbt/parmap.c
b/src/xbt/parmap.c
index
8219493
..
d163965
100644
(file)
--- 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