Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add an assert in case a platform using cluster routing does not link nodes to links...
[simgrid.git] / src / simix / SynchroSleep.hpp
index 5a87136..46a25aa 100644 (file)
@@ -14,11 +14,12 @@ namespace simix {
 
   XBT_PUBLIC_CLASS Sleep : public Synchro {
   public:
-    void suspend();
-    void resume();
+    void suspend() override;
+    void resume() override;
+    void post() override;
 
-    sg_host_t host;                /* The host that is sleeping */
-    surf_action_t surf_sleep;       /* The Surf sleeping action encapsulated */
+    sg_host_t host = nullptr;           /* The host that is sleeping */
+    surf_action_t surf_sleep = nullptr; /* The Surf sleeping action encapsulated */
   };
 
 }} // namespace simgrid::simix