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
doc cosmetics, and cleanup the API
[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
c11c4b9
..
9f12c55
100644
(file)
--- a/
examples/s4u/actor-lifetime/s4u-actor-lifetime.cpp
+++ b/
examples/s4u/actor-lifetime/s4u-actor-lifetime.cpp
@@
-22,11
+22,13
@@
public:
XBT_INFO("Exiting now (done sleeping or got killed).");
},
nullptr);
XBT_INFO("Exiting now (done sleeping or got killed).");
},
nullptr);
-
+ }
+ void operator()()
+ {
XBT_INFO("Hello! I go to sleep.");
simgrid::s4u::this_actor::sleep_for(10);
XBT_INFO("Hello! I go to sleep.");
simgrid::s4u::this_actor::sleep_for(10);
+ XBT_INFO("Done sleeping.");
}
}
- void operator()() { XBT_INFO("Done sleeping."); }
};
int main(int argc, char* argv[])
};
int main(int argc, char* argv[])