Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simcall_execution_destroy() -> simgrid::simix::Exec::unref()
[simgrid.git] / src / simix / SynchroExec.hpp
index 27b62fd..7466a86 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef _SIMIX_SYNCHRO_EXEC_HPP
 #define _SIMIX_SYNCHRO_EXEC_HPP
 
+#include "surf/surf.h"
 #include "src/simix/Synchro.h"
 
 namespace simgrid {
@@ -13,8 +14,15 @@ namespace simix {
 
   XBT_PUBLIC_CLASS Exec : public Synchro {
   public:
+    void suspend();
+    void resume();
+    double remains();
+    void unref();
+
     sg_host_t host;                /* The host where the execution takes place */
     surf_action_t surf_exec;        /* The Surf execution action encapsulated */
+  private:
+    int refcount = 1;
   };
 
 }} // namespace simgrid::simix