Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[doc] Add todo about user .then()
[simgrid.git] / src / simix / SynchroSleep.hpp
index b999526..46a25aa 100644 (file)
@@ -14,12 +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