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
Show also the sub-scheduling rounds.
[simgrid.git]
/
src
/
xbt
/
parmap_private.h
diff --git
a/src/xbt/parmap_private.h
b/src/xbt/parmap_private.h
index
02da424
..
c81e05f
100644
(file)
--- a/
src/xbt/parmap_private.h
+++ b/
src/xbt/parmap_private.h
@@
-18,9
+18,13
@@
typedef enum{
PARMAP_WORK = 0,
PARMAP_DESTROY
} e_xbt_parmap_flag_t;
PARMAP_WORK = 0,
PARMAP_DESTROY
} e_xbt_parmap_flag_t;
-
typedef struct s_xbt_barrier{
typedef struct s_xbt_barrier{
- int futex;
+#ifdef HAVE_FUTEX_H
+ int futex;
+#else
+ xbt_os_mutex_t mutex;
+ xbt_os_cond_t cond;
+#endif
unsigned int thread_count;
unsigned int threads_to_wait;
} s_xbt_barrier_t, *xbt_barrier_t;
unsigned int thread_count;
unsigned int threads_to_wait;
} s_xbt_barrier_t, *xbt_barrier_t;