return static_cast<HostAttribute*>(host->get_data())->available_at;
}
-static void sg_host_set_available_at(simgrid::s4u::Host* host, double time)
+static void sg_host_set_available_at(const simgrid::s4u::Host* host, double time)
{
auto* attr = static_cast<HostAttribute*>(host->get_data());
attr->available_at = time;
return static_cast<HostAttribute*>(host->get_data())->last_scheduled_task;
}
-static void sg_host_set_last_scheduled_task(simgrid::s4u::Host* host, simgrid::s4u::ExecPtr task)
+static void sg_host_set_last_scheduled_task(const simgrid::s4u::Host* host, simgrid::s4u::ExecPtr task)
{
auto* attr = static_cast<HostAttribute*>(host->get_data());
attr->last_scheduled_task = task.get();
static void instr_user_srcdst_variable(double time, const std::string& src, const std::string& dst,
const std::string& variable, double value, InstrUserVariable what)
{
- auto* engine = simgrid::s4u::Engine::get_instance();
+ const auto* engine = simgrid::s4u::Engine::get_instance();
const auto* src_elm = engine->netpoint_by_name_or_null(src);
xbt_assert(src_elm, "Element '%s' not found!", src.c_str());