Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[surf] Triggers the destructed callbacks on the full object
[simgrid.git] / src / surf / cpu_interface.hpp
index 8e5a7ce..c68e484 100644 (file)
@@ -176,13 +176,17 @@ public:
   void plug(simgrid::Host* host);
 
   void addTraces(void);
+  simgrid::Host* getHost() { return m_host; }
+
+protected:
+  virtual void onDie() override;
+
+public:
   int m_core = 1;                /* Amount of cores */
   double m_speedPeak;            /*< CPU speed peak, ie max value */
   double m_speedScale;           /*< Percentage of CPU available according to the trace, in [O,1] */
   simgrid::Host* m_host = nullptr;
 
-  simgrid::Host* getHost() { return m_host; }
-
   /* Note (hypervisor): */
   lmm_constraint_t *p_constraintCore=NULL;
   void **p_constraintCoreId=NULL;