Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
more uniformity in kernel
[simgrid.git] / src / kernel / activity / SynchroRaw.hpp
index d9a38c2..a1d4ca3 100644 (file)
@@ -15,15 +15,21 @@ namespace activity {
 
   /** Used to implement mutexes, semaphores and conditions */
 class XBT_PUBLIC RawImpl : public ActivityImpl {
+  sg_host_t host_ = nullptr;
+  double timeout_ = -1;
+
 public:
-  ~RawImpl() override;
+  RawImpl& set_host(s4u::Host* host);
+  RawImpl& set_timeout(double timeout);
+
+  RawImpl* start();
   void suspend() override;
   void resume() override;
   void post() override;
-
-  simgrid::kernel::resource::Action* sleep = nullptr;
-  };
-
-}}} // namespace simgrid::kernel::activity
+  void finish() override;
+};
+} // namespace activity
+} // namespace kernel
+} // namespace simgrid
 
 #endif