Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill a deprecated function, deprecate another one, and inline a simcall
[simgrid.git] / src / s4u / s4u_host.cpp
index 615ac8b..8944cba 100644 (file)
@@ -65,7 +65,7 @@ void Host::turn_on() {
 }
 
 void Host::turn_off() {
-       simgrid::simix::simcall<void>(SIMCALL_HOST_OFF, this);
+  simgrid::simix::kernel(std::bind(SIMIX_host_off, this, SIMIX_process_self()));
 }
 
 bool Host::is_on() {
@@ -76,7 +76,7 @@ int Host::pstates_count() const {
        return this->pimpl_cpu->getNbPStates();
 }
 
-boost::unordered_map<std::string, Storage*> &Host::mounted_storages() {
+boost::unordered_map<std::string, Storage*> const& Host::mounted_storages() {
        if (mounts == NULL) {
                mounts = new boost::unordered_map<std::string, Storage*> ();