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
Do not call actors processes in S4U examples
[simgrid.git]
/
examples
/
s4u
/
actor-lifetime
/
s4u-actor-lifetime.cpp
diff --git
a/examples/s4u/actor-lifetime/s4u-actor-lifetime.cpp
b/examples/s4u/actor-lifetime/s4u-actor-lifetime.cpp
index
00c1ea4
..
5a945a4
100644
(file)
--- a/
examples/s4u/actor-lifetime/s4u-actor-lifetime.cpp
+++ b/
examples/s4u/actor-lifetime/s4u-actor-lifetime.cpp
@@
-16,7
+16,7
@@
public:
explicit sleeper(std::vector<std::string> /*args*/)
{
simgrid::s4u::this_actor::on_exit([](bool /*failed*/) {
explicit sleeper(std::vector<std::string> /*args*/)
{
simgrid::s4u::this_actor::on_exit([](bool /*failed*/) {
- /* Executed on
process
termination, to display a message helping to understand the output */
+ /* Executed on
actor
termination, to display a message helping to understand the output */
XBT_INFO("Exiting now (done sleeping or got killed).");
});
}
XBT_INFO("Exiting now (done sleeping or got killed).");
});
}
@@
-39,7
+39,7
@@
int main(int argc, char* argv[])
e.load_platform(argv[1]); /* Load the platform description */
e.register_actor<sleeper>("sleeper");
e.load_platform(argv[1]); /* Load the platform description */
e.register_actor<sleeper>("sleeper");
- e.load_deployment(argv[2]); /* Deploy the sleeper
processe
s with explicit start/kill times */
+ e.load_deployment(argv[2]); /* Deploy the sleeper
actor
s with explicit start/kill times */
e.run(); /* - Run the simulation */
e.run(); /* - Run the simulation */