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
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid into LLL
[simgrid.git]
/
src
/
xbt
/
xbt_synchro.c
diff --git
a/src/xbt/xbt_synchro.c
b/src/xbt/xbt_synchro.c
index
f0d73b1
..
e76bb4e
100644
(file)
--- a/
src/xbt/xbt_synchro.c
+++ b/
src/xbt/xbt_synchro.c
@@
-38,7
+38,7
@@
void xbt_dynar_dopar(xbt_dynar_t datas, void_f_int_pvoid_t function)
xbt_dynar_new(sizeof(worker_data_t), worker_wait_n_free);
unsigned int cursor;
void *data;
xbt_dynar_new(sizeof(worker_data_t), worker_wait_n_free);
unsigned int cursor;
void *data;
- if (xbt_dynar_
length(datas) == 0
)
+ if (xbt_dynar_
is_empty(datas)
)
return; /* nothing to do */
if (xbt_dynar_length(datas) == 1) {
/* don't start any new thread, do it directly */
return; /* nothing to do */
if (xbt_dynar_length(datas) == 1) {
/* don't start any new thread, do it directly */