-/* Copyright (c) 2019-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2019-2022. 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. */
std::vector<simgrid::s4u::CommPtr> comms = {put1, put2, get1, get2};
while (not comms.empty()) {
- size_t index = simgrid::s4u::Comm::wait_all_for(&comms, 0.5);
+ size_t index = simgrid::s4u::Comm::wait_all_for(comms, 0.5);
if (index < comms.size())
XBT_INFO("wait_all_for: Timeout reached");
XBT_INFO("wait_all_for: %zu comms finished (#comms=%zu)", index, comms.size());
{
simgrid::s4u::Engine e(&argc, argv);
e.load_platform(argv[1]);
- simgrid::s4u::Actor::create("worker", simgrid::s4u::Host::by_name("Tremblay"), worker);
+ simgrid::s4u::Actor::create("worker", e.host_by_name("Tremblay"), worker);
e.run();
return 0;
}