Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
new signal s4u::Host::onSpeedChange: when pstate is changed (or similar)
[simgrid.git] / include / simgrid / s4u / host.hpp
index 5251f3d..ad4c0a0 100644 (file)
@@ -124,6 +124,9 @@ public:
   static simgrid::xbt::signal<void(Host&)> onDestruction;
   /*** Called when the machine is turned on or off */
   static simgrid::xbt::signal<void(Host&)> onStateChange;
+  /*** Called when the speed of the machine is changed
+   * (either because of a pstate switch or because of an external load event coming from the profile) */
+  static simgrid::xbt::signal<void(Host&)> onSpeedChange;
 };
 
 }} // namespace simgrid::s4u