- xbt_dict_set(host_list, name, host, NULL);
+ xbt_dict_set(host_list, name, host, nullptr);
xbt_die("Cannot call Host::current() from the maestro context");
return SIMIX_process_get_host(smx_proc);
}
void Host::turnOn() {
xbt_die("Cannot call Host::current() from the maestro context");
return SIMIX_process_get_host(smx_proc);
}
void Host::turnOn() {
mounts = new boost::unordered_map<std::string, Storage*> ();
xbt_dict_t dict = this->mountedStoragesAsDict();
mounts = new boost::unordered_map<std::string, Storage*> ();
xbt_dict_t dict = this->mountedStoragesAsDict();
simgrid::surf::HostImpl* surf_host = this->extension<simgrid::surf::HostImpl>();
return surf_host->getProperties();
});
}
simgrid::surf::HostImpl* surf_host = this->extension<simgrid::surf::HostImpl>();
return surf_host->getProperties();
});
}
const char*Host::property(const char*key) {
simgrid::surf::HostImpl* surf_host = this->extension<simgrid::surf::HostImpl>();
return surf_host->getProperty(key);
}
void Host::setProperty(const char*key, const char *value){
const char*Host::property(const char*key) {
simgrid::surf::HostImpl* surf_host = this->extension<simgrid::surf::HostImpl>();
return surf_host->getProperty(key);
}
void Host::setProperty(const char*key, const char *value){
simgrid::surf::HostImpl* surf_host = this->extension<simgrid::surf::HostImpl>();
surf_host->setProperty(key,value);
});
simgrid::surf::HostImpl* surf_host = this->extension<simgrid::surf::HostImpl>();
surf_host->setProperty(key,value);
});
return ((smx_host_priv_t)this->extension(SIMIX_HOST_LEVEL))->process_list;
});
}
/** Get the peak power of a host */
return ((smx_host_priv_t)this->extension(SIMIX_HOST_LEVEL))->process_list;
});
}
/** Get the peak power of a host */
return pimpl_cpu->getCore();
}
/** @brief Set the pstate at which the host should run */
void Host::setPstate(int pstate_index)
{
return pimpl_cpu->getCore();
}
/** @brief Set the pstate at which the host should run */
void Host::setPstate(int pstate_index)
{
this->extension<simgrid::surf::HostImpl>()->getParams(params);
});
}
void Host::setParameters(vm_params_t params)
{
this->extension<simgrid::surf::HostImpl>()->getParams(params);
});
}
void Host::setParameters(vm_params_t params)
{