Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[s4u] .notify_one() instead of .notify()
authorGabriel Corona <gabriel.corona@loria.fr>
Wed, 22 Jun 2016 12:54:56 +0000 (14:54 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Wed, 22 Jun 2016 13:02:09 +0000 (15:02 +0200)
include/simgrid/s4u/conditionVariable.hpp
src/s4u/s4u_conditionVariable.cpp

index 0c34c92..4d59c28 100644 (file)
@@ -84,9 +84,12 @@ 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_;
 
index 28c9fc0..02f4f82 100644 (file)
@@ -63,7 +63,7 @@ std::cv_status s4u::ConditionVariable::wait_until(std::unique_lock<Mutex>& lock,
 /**
  * Notify functions
  */
-void s4u::ConditionVariable::notify() { 
+void s4u::ConditionVariable::notify_one() {
    simcall_cond_signal(cond_);
 }