-/* Copyright (c) 2017-2019. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2017-2021. 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. */
XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_actor_migration, "Messages specific for this s4u example");
-static void worker(simgrid::s4u::Host* first, simgrid::s4u::Host* second)
+static void worker(simgrid::s4u::Host* first, const simgrid::s4u::Host* second)
{
double flopAmount = first->get_speed() * 5 + second->get_speed() * 5;
simgrid::s4u::this_actor::sleep_for(5);
- XBT_INFO("After 5 seconds, move the process to %s", jacquelin->get_cname());
+ XBT_INFO("After 5 seconds, move the actor to %s", jacquelin->get_cname());
actor->set_host(jacquelin);
simgrid::s4u::this_actor::sleep_until(15);
- XBT_INFO("At t=15, move the process to %s and resume it.", fafard->get_cname());
+ XBT_INFO("At t=15, move the actor to %s and resume it.", fafard->get_cname());
actor->set_host(fafard);
actor->resume();
}