Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
tuto_s4u: add an exercise about the Mailboxes, and improve related doc
[simgrid.git] / examples / s4u / app-masterworkers / s4u-app-masterworkers-fun.cpp
index e63565f..e3727c0 100644 (file)
@@ -3,8 +3,9 @@
 /* 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>
 
@@ -48,7 +49,7 @@ static void worker(std::vector<std::string> args)
 {
   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;