X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e99ac4319ea4bab13a821b840b58a443918d5c28..cdac506670725ae4fe40b3b1a31ceeb9488ce53a:/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 c11c4b9e58..9f12c5505f 100644 --- 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); - + } + void operator()() + { 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[])