X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/24e3d7b3bb3312445ad0986fc67853995031bea0..2bdebbaf8391c3b5dc1cd193491504f83bb2ea3e:/src/s4u/s4u_host.cpp diff --git a/src/s4u/s4u_host.cpp b/src/s4u/s4u_host.cpp index 9bab734630..8701353b5d 100644 --- a/src/s4u/s4u_host.cpp +++ b/src/s4u/s4u_host.cpp @@ -31,9 +31,6 @@ int USER_HOST_LEVEL; namespace simgrid { namespace s4u { -boost::unordered_map *Host::hosts - = new boost::unordered_map(); - simgrid::xbt::signal Host::onCreation; simgrid::xbt::signal Host::onDestruction; simgrid::xbt::signal Host::onStateChange; @@ -79,9 +76,9 @@ int Host::getNbPStates() const { return this->pimpl_cpu->getNbPStates(); } -boost::unordered_map &Host::mountedStorages() { +boost::unordered_map &Host::mountedStorages() { if (mounts == NULL) { - mounts = new boost::unordered_map (); + mounts = new boost::unordered_map (); xbt_dict_t dict = this->getMountedStorageList(); @@ -89,7 +86,7 @@ boost::unordered_map &Host::mountedStorages() { char *mountname; char *storagename; xbt_dict_foreach(dict, cursor, mountname, storagename) { - mounts->insert({mountname, Storage::byName(storagename)}); + mounts->insert({mountname, &Storage::byName(storagename)}); } xbt_dict_free(&dict); }