Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new entry in Release_Notes.
[simgrid.git] / teshsuite / s4u / pid / pid.cpp
index 7c2c7c0..5d0c7f1 100644 (file)
@@ -1,11 +1,11 @@
-/* Copyright (c) 2009-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2009-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. */
 
 #include "simgrid/s4u.hpp"
 
-XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "Messages specific for this msg example");
+XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "Messages specific for this example");
 
 static void sendpid()
 {
@@ -38,10 +38,10 @@ int main(int argc, char* argv[])
 
   simgrid::s4u::Actor::kill_all();
 
-  simgrid::s4u::Actor::create("sendpid", simgrid::s4u::Host::by_name("Tremblay"), sendpid);
-  simgrid::s4u::Actor::create("sendpid", simgrid::s4u::Host::by_name("Tremblay"), sendpid);
-  simgrid::s4u::Actor::create("sendpid", simgrid::s4u::Host::by_name("Tremblay"), sendpid);
-  simgrid::s4u::Actor::create("killall", simgrid::s4u::Host::by_name("Tremblay"), killall);
+  simgrid::s4u::Actor::create("sendpid", e.host_by_name("Tremblay"), sendpid);
+  simgrid::s4u::Actor::create("sendpid", e.host_by_name("Tremblay"), sendpid);
+  simgrid::s4u::Actor::create("sendpid", e.host_by_name("Tremblay"), sendpid);
+  simgrid::s4u::Actor::create("killall", e.host_by_name("Tremblay"), killall);
 
   e.run();