#define SIMGRID_S4U_COND_VARIABLE_HPP
#include <condition_variable>
+#include <future>
#include <mutex>
#include <utility> // std::swap
+#include <boost/intrusive_ptr.hpp>
+
+#include <xbt/base.h>
+
#include <simgrid/simix.h>
#include <simgrid/s4u/mutex.hpp>
class Mutex;
+/** A condition variable
+ *
+ * This is based on std::condition_variable and should respect the same
+ * semantic. But we currently use (only) double for both durations and
+ * timestamp timeouts.
+ */
XBT_PUBLIC_CLASS ConditionVariable {
public:
// Notify functions
- void notify();
+ void notify_one();
void notify_all();
+ XBT_ATTRIB_DEPRECATED("Use notify_one() instead")
+ void notify() { notify_one(); }
+
private:
smx_cond_t cond_;