Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[s4u] Add member initializers
[simgrid.git] / src / simix / SynchroRaw.hpp
index 3d8a28e..1d9345b 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef _SIMIX_SYNCHRO_RAW_HPP
 #define _SIMIX_SYNCHRO_RAW_HPP
 
+#include "surf/surf.h"
 #include "src/simix/Synchro.h"
 
 namespace simgrid {
@@ -14,7 +15,12 @@ namespace simix {
   /** Used to implement mutexes, semaphores and conditions */
   XBT_PUBLIC_CLASS Raw : public Synchro {
   public:
-    surf_action_t sleep;
+    ~Raw() override;
+    void suspend() override;
+    void resume() override;
+    void post() override;
+
+    surf_action_t sleep = nullptr;
   };
 
 }} // namespace simgrid::simix