Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
CpuTI cleanups: initialize fields, dont overide with same content, typos and cosmetics
[simgrid.git] / src / surf / cpu_ti.hpp
index 17940d8..02b630b 100644 (file)
@@ -91,7 +91,6 @@ public:
   void updateIndexHeap(int i);
   void suspend() override;
   void resume() override;
-  bool isSuspended() override;
   void setMaxDuration(double duration) override;
   void setPriority(double priority) override;
   double getRemains() override;
@@ -130,11 +129,11 @@ public:
   void modified(bool modified);
 
   CpuTiTgmr *p_availTrace;       /*< Structure with data needed to integrate trace file */
-  tmgr_trace_event_t p_stateEvent;       /*< trace file with states events (ON or OFF) */
-  tmgr_trace_event_t p_speedEvent;       /*< trace file with availability events */
+  tmgr_trace_event_t p_stateEvent = NULL; /*< trace file with states events (ON or OFF) */
+  tmgr_trace_event_t p_speedEvent = NULL; /*< trace file with availability events */
   ActionTiList *p_actionSet;        /*< set with all actions running on cpu */
   double m_sumPriority;          /*< the sum of actions' priority that are running on cpu */
-  double m_lastUpdate;           /*< last update of actions' remaining amount done */
+  double m_lastUpdate = 0;       /*< last update of actions' remaining amount done */
 
   double current_frequency;