Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Simplify the code taking Cpu::m_speedPeak changes into account
[simgrid.git] / src / surf / cpu_interface.hpp
index 147d3bd..0ab1e48 100644 (file)
@@ -129,6 +129,11 @@ public:
   /** @brief Get the speed, accounting for the trace load and provided process load instead of the real current one */
   virtual double getSpeed(double load);
 
+protected:
+  /** @brief Take speed changes (either load or max) into account */
+  virtual void onSpeedChange();
+
+public:
   /** @brief Get the available speed of the current Cpu */
   virtual double getAvailableSpeed();