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]
/
src
/
surf
/
network_constant.c
diff --git
a/src/surf/network_constant.c
b/src/surf/network_constant.c
index
96b3485
..
2c91cc3
100644
(file)
--- a/
src/surf/network_constant.c
+++ b/
src/surf/network_constant.c
@@
-85,7
+85,7
@@
static int resource_used(void *resource_id)
return 0;
}
return 0;
}
-static int action_
free
(surf_action_t action)
+static int action_
unref
(surf_action_t action)
{
action->refcount--;
if (!action->refcount) {
{
action->refcount--;
if (!action->refcount) {
@@
-96,7
+96,7
@@
static int action_free(surf_action_t action)
return 0;
}
return 0;
}
-static void action_
use
(surf_action_t action)
+static void action_
ref
(surf_action_t action)
{
action->refcount++;
}
{
action->refcount++;
}
@@
-273,8
+273,8
@@
static void surf_network_model_init_internal(void)
surf_network_model = surf_model_init();
surf_network_model->name = "network constant";
surf_network_model = surf_model_init();
surf_network_model->name = "network constant";
- surf_network_model->action_
free = action_free
;
- surf_network_model->action_
use = action_use
;
+ surf_network_model->action_
unref = action_unref
;
+ surf_network_model->action_
ref = action_ref
;
surf_network_model->action_cancel = action_cancel;
surf_network_model->action_recycle = action_recycle;
surf_network_model->action_cancel = action_cancel;
surf_network_model->action_recycle = action_recycle;