std::unordered_map<std::string, std::string>* NetZone::getProperties()
{
- return simgrid::simix::kernelImmediate([this] { return &properties_; });
+ return simgrid::simix::simcall([this] { return &properties_; });
}
/** Retrieve the property value (or nullptr if not set) */
}
void NetZone::setProperty(const char* key, const char* value)
{
- simgrid::simix::kernelImmediate([this, key, value] { properties_[key] = value; });
+ simgrid::simix::simcall([this, key, value] { properties_[key] = value; });
}
/** @brief Returns the list of direct children (no grand-children)
sg_netzone_t sg_zone_get_root()
{
- return simgrid::s4u::Engine::get_instance()->getNetRoot();
+ return simgrid::s4u::Engine::get_instance()->get_netzone_root();
}
const char* sg_zone_get_name(sg_netzone_t netzone)
sg_netzone_t sg_zone_get_by_name(const char* name)
{
- return simgrid::s4u::Engine::get_instance()->getNetzoneByNameOrNull(name);
+ return simgrid::s4u::Engine::get_instance()->netzone_by_name_or_null(name);
}
void sg_zone_get_sons(sg_netzone_t netzone, xbt_dict_t whereto)