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
MSG_task_dsend: don't apply a default function if cleanup is NULL
[simgrid.git]
/
examples
/
simdag
/
sd_seq_access.c
diff --git
a/examples/simdag/sd_seq_access.c
b/examples/simdag/sd_seq_access.c
index
c1157cb
..
01b0433
100644
(file)
--- a/
examples/simdag/sd_seq_access.c
+++ b/
examples/simdag/sd_seq_access.c
@@
-86,7
+86,7
@@
int main(int argc, char **argv)
&(computation_amount[1]), SD_SCHED_NO_COST, rate);
/* let's launch the simulation! */
&(computation_amount[1]), SD_SCHED_NO_COST, rate);
/* let's launch the simulation! */
- while (
xbt_dynar_length(changed_tasks = SD_simulate(-1.0)) > 0
) {
+ while (
!xbt_dynar_is_empty(changed_tasks = SD_simulate(-1.0))
) {
for (i = 0; i < 2; i++) {
task = SD_workstation_get_current_task(workstations[i]);
if (task)
for (i = 0; i < 2; i++) {
task = SD_workstation_get_current_task(workstations[i]);
if (task)