]> AND Public Git Repository - simgrid.git/blobdiff - src/simix/SynchroIo.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr/gitroot/simgrid/simgrid
[simgrid.git] / src / simix / SynchroIo.hpp
index a3039b75ef9801453ecc18cadd6753e8b6b35d74..0927c0b119b4748fc307f9fb93ded2e2edf9e026 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef _SIMIX_SYNCHRO_IO_HPP
 #define _SIMIX_SYNCHRO_IO_HPP
 
+#include "surf/surf.h"
 #include "src/simix/Synchro.h"
 
 namespace simgrid {
@@ -13,8 +14,12 @@ namespace simix {
 
   XBT_PUBLIC_CLASS Io : public Synchro {
   public:
-    sg_host_t host;
-    surf_action_t surf_io;
+    void suspend() override;
+    void resume() override;
+    void post() override;
+
+    sg_host_t host = nullptr;
+    surf_action_t surf_io = nullptr;
   };
 
 }} // namespace simgrid::simix