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
Rename model methods action_use/free to action_ref/unref
[simgrid.git]
/
testsuite
/
surf
/
surf_usage2.c
diff --git
a/testsuite/surf/surf_usage2.c
b/testsuite/surf/surf_usage2.c
index
ad38d7e
..
8201a45
100644
(file)
--- a/
testsuite/surf/surf_usage2.c
+++ b/
testsuite/surf/surf_usage2.c
@@
-61,11
+61,11
@@
void test(char *platform)
/* Let's check that those two processors exist */
DEBUG2("%s : %p",
/* Let's check that those two processors exist */
DEBUG2("%s : %p",
- surf_workstation_model->
common_public->
- get_resource_name(workstationA), workstationA);
+ surf_workstation_model->
+
common_public->
get_resource_name(workstationA), workstationA);
DEBUG2("%s : %p",
DEBUG2("%s : %p",
- surf_workstation_model->
common_public->
- get_resource_name(workstationB), workstationB);
+ surf_workstation_model->
+
common_public->
get_resource_name(workstationB), workstationB);
/* Let's do something on it */
actionA =
/* Let's do something on it */
actionA =
@@
-92,16
+92,16
@@
void test(char *platform)
xbt_dynar_foreach(model_list, iter, model) {
DEBUG1("\t %s actions", model->common_public->name);
while ((action =
xbt_dynar_foreach(model_list, iter, model) {
DEBUG1("\t %s actions", model->common_public->name);
while ((action =
- xbt_swag_extract(model->common_public->
states.
- failed_action_set))) {
+ xbt_swag_extract(model->common_public->
+
states.
failed_action_set))) {
DEBUG1("\t * Failed : %p", action);
DEBUG1("\t * Failed : %p", action);
- model->common_public->action_
free
(action);
+ model->common_public->action_
unref
(action);
}
while ((action =
}
while ((action =
- xbt_swag_extract(model->common_public->
states.
- done_action_set))) {
+ xbt_swag_extract(model->common_public->
+
states.
done_action_set))) {
DEBUG1("\t * Done : %p", action);
DEBUG1("\t * Done : %p", action);
- model->common_public->action_
free
(action);
+ model->common_public->action_
unref
(action);
}
}
} while (surf_solve() >= 0.0);
}
}
} while (surf_solve() >= 0.0);