Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
code simplifications in VMs
[simgrid.git] / include / simgrid / s4u / host.hpp
index 3583def..2eeded4 100644 (file)
@@ -44,12 +44,11 @@ XBT_PUBLIC_CLASS Host :
 
 public:
   explicit Host(const char *name);
+
   /** Host destruction logic */
-protected:
-  ~Host(); // TODO, make me private
 private:
+  ~Host();
   bool currentlyDestroying_ = false;
-
 public:
   void destroy();
 
@@ -72,6 +71,7 @@ public:
   void turnOff();
   /** Returns if that host is currently up and running */
   bool isOn();
+  /** Returns if that host is currently down and offline */
   bool isOff() { return !isOn(); }
 
   double speed();