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
model-checker : remove unnecessary include in lex file
[simgrid.git]
/
examples
/
msg
/
mc
/
centralized_mutex.c
diff --git
a/examples/msg/mc/centralized_mutex.c
b/examples/msg/mc/centralized_mutex.c
index
bc2e329
..
5cfb74f
100644
(file)
--- a/
examples/msg/mc/centralized_mutex.c
+++ b/
examples/msg/mc/centralized_mutex.c
@@
-34,7
+34,7
@@
int coordinator(int argc, char *argv[])
CS_used = 1;
}
} else { // that's a release. Check if someone was waiting for the lock
CS_used = 1;
}
} else { // that's a release. Check if someone was waiting for the lock
- if (
xbt_dynar_length(requests) > 0
) {
+ if (
!xbt_dynar_is_empty(requests)
) {
XBT_INFO("CS release. Grant to queued requests (queue size: %lu)",
xbt_dynar_length(requests));
char *req;
XBT_INFO("CS release. Grant to queued requests (queue size: %lu)",
xbt_dynar_length(requests));
char *req;