Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] make signals private
[simgrid.git] / examples / cpp / actor-join / s4u-actor-join.cpp
index fd11767aa0505a81c5ed6d5c45a58aa095a0616c..f565df86465adc9d62afff511329260d99fbe5de 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. */
@@ -55,7 +55,7 @@ int main(int argc, char* argv[])
 
   e.load_platform(argv[1]);
 
-  sg4::Actor::create("master", sg4::Host::by_name("Tremblay"), master);
+  sg4::Actor::create("master", e.host_by_name("Tremblay"), master);
 
   e.run();