Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Delete the CPU (fix a mem leak)
[simgrid.git] / include / simgrid / s4u / host.hpp
index 10b6bc9..2f5ef50 100644 (file)
@@ -81,10 +81,8 @@ public:
        /** Get an associative list [mount point]->[Storage] off all local mount points.
         *
         *      This is defined in the platform file, and cannot be modified programatically (yet).
-        *
-        *      Do not change the returned value in any way.
         */
-       boost::unordered_map<std::string, Storage*> &mounted_storages();
+       boost::unordered_map<std::string, Storage*> const &mounted_storages();
 
 private:
        simgrid::xbt::string name_ = "noname";
@@ -93,6 +91,7 @@ private:
 public:
        // FIXME: these should be protected, but it leads to many errors
        // Use the extensions stuff for this? Go through simgrid::surf::Host?
+  // TODO, this could be a unique_ptr
        surf::Cpu     *pimpl_cpu = nullptr;
        surf::NetCard *pimpl_netcard = nullptr;