Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix dist
[simgrid.git] / src / kernel / activity / SynchroExec.hpp
index b9747b8..9269975 100644 (file)
@@ -7,12 +7,13 @@
 #define _SIMIX_SYNCHRO_EXEC_HPP
 
 #include "surf/surf.h"
-#include "src/kernel/activity/Synchro.h"
+#include "src/kernel/activity/ActivityImpl.hpp"
 
 namespace simgrid {
-namespace simix {
+namespace kernel {
+namespace activity {
 
-  XBT_PUBLIC_CLASS Exec : public Synchro {
+  XBT_PUBLIC_CLASS Exec : public ActivityImpl {
     ~Exec() override;
   public:
     Exec(const char*name, sg_host_t host);
@@ -21,9 +22,10 @@ namespace simix {
     void post() override;
     double remains();
 
-    sg_host_t host = nullptr; /* The host where the execution takes place. If nullptr, then this is a parallel exec (and only surf knows the hosts) */
+    sg_host_t host_ = nullptr; /* The host where the execution takes place. If nullptr, then this is a parallel exec (and only surf knows the hosts) */
     surf_action_t surf_exec = nullptr; /* The Surf execution action encapsulated */
+    surf::Action* timeoutDetector = nullptr;
   };
 
-}} // namespace simgrid::simix
+}}} // namespace simgrid::kernel::activity
 #endif