Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
play with (parallel) execs. still not satisfying
[simgrid.git] / src / kernel / activity / ExecImpl.hpp
index accc1c5d7ec454eaacbb7481d0d54e0221bed093..cda277cd9b40134297c29937e4472df47a14b6f3 100644 (file)
@@ -7,6 +7,7 @@
 #define SIMIX_SYNCHRO_EXEC_HPP
 
 #include "src/kernel/activity/ActivityImpl.hpp"
+#include "src/kernel/context/Context.hpp"
 #include "surf/surf.hpp"
 
 namespace simgrid {
@@ -17,11 +18,12 @@ class XBT_PUBLIC ExecImpl : public ActivityImpl {
   ~ExecImpl() override;
 
 public:
-  explicit ExecImpl(std::string name, std::string tracing_category, resource::Action* timeout_detector,
-                    s4u::Host* host);
+  explicit ExecImpl(std::string name, std::string tracing_category, s4u::Host* host);
+  explicit ExecImpl(std::string name, std::string tracing_category, s4u::Host* host, double timeout);
   ExecImpl* start(double flops_amount, double priority, double bound);
   void cancel();
   void post() override;
+  void finish() override;
   double get_remaining();
   double get_remaining_ratio();
   void set_bound(double bound);