X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/19b3962253112b19308537bc2400de141c119d99..7ef49c428ab0209965a09a36ab28b59789aaa4b5:/examples/s4u/actor-suspend/s4u_actor-suspend.cpp diff --git a/examples/s4u/actor-suspend/s4u_actor-suspend.cpp b/examples/s4u/actor-suspend/s4u_actor-suspend.cpp index a4d6dc45c1..9d98a4a83b 100644 --- a/examples/s4u/actor-suspend/s4u_actor-suspend.cpp +++ b/examples/s4u/actor-suspend/s4u_actor-suspend.cpp @@ -1,5 +1,4 @@ -/* Copyright (c) 2017. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2017. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -33,7 +32,7 @@ static void lazy_guy() static void dream_master() { XBT_INFO("Let's create a lazy guy."); /* - Create a lazy_guy process */ - simgrid::s4u::ActorPtr lazy = simgrid::s4u::Actor::createActor("Lazy", simgrid::s4u::this_actor::host(), lazy_guy); + simgrid::s4u::ActorPtr lazy = simgrid::s4u::Actor::createActor("Lazy", simgrid::s4u::this_actor::getHost(), lazy_guy); XBT_INFO("Let's wait a little bit..."); simgrid::s4u::this_actor::sleep_for(10); /* - Wait for 10 seconds */ XBT_INFO("Let's wake the lazy guy up! >:) BOOOOOUUUHHH!!!!"); @@ -72,10 +71,11 @@ int main(int argc, char* argv[]) e->loadPlatform(argv[1]); /* - Load the platform description */ std::vector list; - e->hostList(&list); + e->getHostList(&list); simgrid::s4u::Actor::createActor("dream_master", list.front(), dream_master); e->run(); /* - Run the simulation */ + delete e; return 0; }