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
reorg and more functions in namespace
[simgrid.git]
/
examples
/
s4u
/
actions-comm
/
s4u_actions-comm.cpp
diff --git
a/examples/s4u/actions-comm/s4u_actions-comm.cpp
b/examples/s4u/actions-comm/s4u_actions-comm.cpp
index
e669955
..
d62c029
100644
(file)
--- a/
examples/s4u/actions-comm/s4u_actions-comm.cpp
+++ b/
examples/s4u/actions-comm/s4u_actions-comm.cpp
@@
-38,7
+38,7
@@
public:
argc = 2;
argv[1] = &args.at(1)[0];
}
argc = 2;
argv[1] = &args.at(1)[0];
}
-
xbt_replay_action
_runner(argc, argv);
+
simgrid::xbt::replay
_runner(argc, argv);
}
void operator()()
}
void operator()()
@@
-86,7
+86,7
@@
int main(int argc, char *argv[])
{
simgrid::s4u::Engine* e = new simgrid::s4u::Engine(&argc, argv);
/* Explicit initialization of the action module is required now*/
{
simgrid::s4u::Engine* e = new simgrid::s4u::Engine(&argc, argv);
/* Explicit initialization of the action module is required now*/
-
_xbt_replay_action
_init();
+
simgrid::xbt::replay
_init();
xbt_assert(argc > 2, "Usage: %s platform_file deployment_file [action_files]\n"
"\t# if all actions are in the same file\n"
xbt_assert(argc > 2, "Usage: %s platform_file deployment_file [action_files]\n"
"\t# if all actions are in the same file\n"
@@
-96,7
+96,7
@@
int main(int argc, char *argv[])
argv[0], argv[0], argv[0]);
e->loadPlatform(argv[1]);
argv[0], argv[0], argv[0]);
e->loadPlatform(argv[1]);
- e->registerDefault(&
xbt_replay_action
_runner);
+ e->registerDefault(&
simgrid::xbt::replay
_runner);
e->registerFunction<Replayer>("p0");
e->registerFunction<Replayer>("p1");
e->loadDeployment(argv[2]);
e->registerFunction<Replayer>("p0");
e->registerFunction<Replayer>("p1");
e->loadDeployment(argv[2]);
@@
-120,7
+120,7
@@
int main(int argc, char *argv[])
XBT_INFO("Simulation time %g", e->getClock());
XBT_INFO("Simulation time %g", e->getClock());
-
_xbt_replay_action
_exit(); /* Explicit finalization of the action module */
+
simgrid::xbt::replay
_exit(); /* Explicit finalization of the action module */
return 0;
}
return 0;
}