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
Documentation ++
[simgrid.git]
/
src
/
msg
/
msg_synchro.c
diff --git
a/src/msg/msg_synchro.c
b/src/msg/msg_synchro.c
index
186fcef
..
70f1383
100644
(file)
--- a/
src/msg/msg_synchro.c
+++ b/
src/msg/msg_synchro.c
@@
-76,8
+76,11
@@
void MSG_barrier_destroy(msg_bar_t bar) {
}
/** @brief Performs a barrier already initialized */
}
/** @brief Performs a barrier already initialized */
-void MSG_barrier_wait(msg_bar_t bar) {
- xbt_barrier_wait((xbt_bar_t)bar);
+int MSG_barrier_wait(msg_bar_t bar) {
+ if(xbt_barrier_wait((xbt_bar_t)bar) == XBT_BARRIER_SERIAL_PROCESS)
+ return MSG_BARRIER_SERIAL_PROCESS;
+ else
+ return 0;
}
/**@}*/
}
/**@}*/