Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[surf] Triggers the destructed callbacks on the full object
[simgrid.git] / src / surf / surf_interface.hpp
index ae7266f..4dce34d 100644 (file)
@@ -488,7 +488,12 @@ public:
   /** @brief Set the [state](\ref e_surf_resource_state_t) of the current Resource */
   virtual void setState(e_surf_resource_state_t state);
 
+protected:
+  void die();
+  virtual void onDie();
+
 private:
+  bool alive_ = true;
   const char *p_name;
   Model *p_model;
   bool m_running;