/* 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. */
-/* This is part of the following tutorial: */
-/* https://simgrid.frama.io/simgrid/usecase_algorithms.html */
+/* ************************************************************************* */
+/* Take this tutorial online: https://simgrid.frama.io/simgrid/tuto_s4u.html */
+/* ************************************************************************* */
#include <simgrid/s4u.hpp>
{
xbt_assert(args.size() == 1, "The worker expects no argument");
- auto my_host = simgrid::s4u::this_actor::get_host();
+ simgrid::s4u::Host* my_host = simgrid::s4u::this_actor::get_host();
simgrid::s4u::MailboxPtr mailbox = simgrid::s4u::Mailbox::by_name(my_host->get_name());
double compute_cost;