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
[simix] Refcounting with SIMIX_{process,mutex}_{ref,unref}()
[simgrid.git]
/
examples
/
msg
/
actions-comm
/
actions-comm.c
diff --git
a/examples/msg/actions-comm/actions-comm.c
b/examples/msg/actions-comm/actions-comm.c
index
126936b
..
86486d2
100644
(file)
--- a/
examples/msg/actions-comm/actions-comm.c
+++ b/
examples/msg/actions-comm/actions-comm.c
@@
-183,7
+183,7
@@
static void action_barrier(const char *const *action)
processes_arrived_sofar--;
if (processes_arrived_sofar<=0) {
SIMIX_cond_destroy(cond);
- SIMIX_mutex_
destroy
(mutex);
+ SIMIX_mutex_
unref
(mutex);
mutex = NULL;
}
}