X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4ba85316ab090c9e1fb26e988dc80dd5c4535bd8..ca112da1ded1f7e3308c4186e4188ad96b3b4032:/examples/s4u/actor-kill/s4u-actor-kill.cpp diff --git a/examples/s4u/actor-kill/s4u-actor-kill.cpp b/examples/s4u/actor-kill/s4u-actor-kill.cpp index 366364088e..51c90b62d0 100644 --- a/examples/s4u/actor-kill/s4u-actor-kill.cpp +++ b/examples/s4u/actor-kill/s4u-actor-kill.cpp @@ -52,6 +52,13 @@ static void killer() simgrid::s4u::this_actor::sleep_for(1); + XBT_INFO("Start a new actor, and kill it right away"); + simgrid::s4u::ActorPtr victimC = + simgrid::s4u::Actor::createActor("victim C", simgrid::s4u::Host::by_name("Jupiter"), victimA_fun); + victimC->kill(); + + simgrid::s4u::this_actor::sleep_for(1); + XBT_INFO("Killing everybody but myself"); simgrid::s4u::Actor::killAll(); @@ -72,7 +79,5 @@ int main(int argc, char* argv[]) e.run(); /* - Run the simulation */ - XBT_INFO("Simulation time %g", e.getClock()); - return 0; }