Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New method: MutexImpl::is_granted()
[simgrid.git] / teshsuite / s4u / comm-get-sender / comm-get-sender.cpp
index 081b14aae6b2e913e4bd49fec0c20540009211dc..68b3481e06b9b1278a4b181e676fc5930b328b4a 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2009-2021. The SimGrid Team.
+/* Copyright (c) 2009-2023. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -36,8 +36,8 @@ int main(int argc, char* argv[])
 
   e.load_platform(argv[1]);
 
-  simgrid::s4u::Actor::create("send", simgrid::s4u::Host::by_name("Tremblay"), sender_fun);
-  simgrid::s4u::Actor::create("receive", simgrid::s4u::Host::by_name("Tremblay"), receiver_fun);
+  simgrid::s4u::Actor::create("send", e.host_by_name("Tremblay"), sender_fun);
+  simgrid::s4u::Actor::create("receive", e.host_by_name("Tremblay"), receiver_fun);
 
   e.run();
   return 0;