Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
do standard C++
[simgrid.git] / include / simgrid / s4u / host.hpp
index 4e59267..3583def 100644 (file)
@@ -44,7 +44,14 @@ XBT_PUBLIC_CLASS Host :
 
 public:
   explicit Host(const char *name);
+  /** Host destruction logic */
+protected:
   ~Host(); // TODO, make me private
+private:
+  bool currentlyDestroying_ = false;
+
+public:
+  void destroy();
 
   /** Retrieves an host from its name, or return nullptr */
   static Host* by_name_or_null(const char* name);