Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] make signals private
[simgrid.git] / examples / cpp / actor-daemon / s4u-actor-daemon.cpp
index 61666cf6f97bdc27d64c4636540d8fdb5cfeaf0c..b023e81051296975dc974ac0e8758e83554ee07d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2017-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2017-2023. 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. */
@@ -35,8 +35,8 @@ int main(int argc, char* argv[])
   sg4::Engine e(&argc, argv);
 
   e.load_platform(argv[1]);
-  sg4::Actor::create("worker", sg4::Host::by_name("Boivin"), worker);
-  sg4::Actor::create("daemon", sg4::Host::by_name("Tremblay"), my_daemon);
+  sg4::Actor::create("worker", e.host_by_name("Boivin"), worker);
+  sg4::Actor::create("daemon", e.host_by_name("Tremblay"), my_daemon);
 
   e.run();
   return 0;