Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
attempt to extend S4U to migrate actors
[simgrid.git] / include / simgrid / s4u / conditionVariable.hpp
index 3b03bca..47451e6 100644 (file)
 
 #include <simgrid/simix.h>
 #include <simgrid/chrono.hpp>
-#include <simgrid/s4u/mutex.hpp>
+#include <simgrid/s4u/Mutex.hpp>
 
 namespace simgrid {
 namespace s4u {
 
-class Mutex;
-
-/** A condition variable
+/** @brief A condition variable
+ *  @ingroup s4u_api
  *
- *  This is based on std::condition_variable and should respect the same
+ *  This is a drop-in replacement of `std::condition_variable` and should respect the same
  *  semantic. But we currently use (only) double for both durations and
  *  timestamp timeouts.
  */
@@ -49,6 +48,7 @@ public:
 
   //  Wait functions without time:
 
+  void wait(MutexPtr lock);
   void wait(std::unique_lock<Mutex>& lock);
   template<class P>
   void wait(std::unique_lock<Mutex>& lock, P pred)