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
more debug
[simgrid.git]
/
examples
/
msg
/
actions
/
actions.c
diff --git
a/examples/msg/actions/actions.c
b/examples/msg/actions/actions.c
index
66a6478
..
b8eb96a
100644
(file)
--- a/
examples/msg/actions/actions.c
+++ b/
examples/msg/actions/actions.c
@@
-190,9
+190,9
@@
static void barrier(xbt_dynar_t action)
if (XBT_LOG_ISENABLED(actions, xbt_log_priority_verbose))
name = xbt_str_join(action, " ");
if (XBT_LOG_ISENABLED(actions, xbt_log_priority_verbose))
name = xbt_str_join(action, " ");
- DEBUG1("Entering barrier: %s", name);
if (barrier_semaphore == NULL) // first arriving on the barrier
barrier_semaphore = SIMIX_sem_init(0);
if (barrier_semaphore == NULL) // first arriving on the barrier
barrier_semaphore = SIMIX_sem_init(0);
+ DEBUG2("Entering barrier: %s (capacity: %d)", name,SIMIX_sem_get_capacity(barrier_semaphore));
if (SIMIX_sem_get_capacity(barrier_semaphore) == -communicator_size + 1) { // last arriving
SIMIX_sem_release_forever(barrier_semaphore);
if (SIMIX_sem_get_capacity(barrier_semaphore) == -communicator_size + 1) { // last arriving
SIMIX_sem_release_forever(barrier_semaphore);