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
task->data (formerly callback) could not be set by end-users.
[simgrid.git]
/
src
/
surf
/
surf.c
diff --git
a/src/surf/surf.c
b/src/surf/surf.c
index
5308482
..
6daa250
100644
(file)
--- a/
src/surf/surf.c
+++ b/
src/surf/surf.c
@@
-103,6
+103,12
@@
void surf_action_change_state(surf_action_t action,
xbt_swag_insert(action, action->state_set);
}
+void surf_action_set_data(surf_action_t action,
+ void *data)
+{
+ action->data=data;
+}
+
void surf_init(int *argc, char **argv)
{
xbt_init(argc, argv);