Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Specialize the Activity on_veto, on_suspend and on_resume in AnyActivity to ease...
[simgrid.git] / include / simgrid / s4u / Exec.hpp
index df0183f..1f5d519 100644 (file)
@@ -43,7 +43,10 @@ protected:
   void reset() const;
 
   static xbt::signal<void(Exec const&)> on_start;
-  void fire_this_completion() const override { on_completion(*this); }
+  void fire_on_completion() const override { on_completion(*this); }
+  void fire_on_veto() const override { on_veto(const_cast<Exec&>(*this)); }
+  void fire_on_suspend() const override { on_suspend(*this); }
+  void fire_on_resume() const override { on_resume(*this); }
 
 public:
 #ifndef DOXYGEN