Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[s4u] Remove broken ConditionVariable::wait_for(lock, duration, pred)
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 21 Jun 2016 09:10:11 +0000 (11:10 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 21 Jun 2016 09:35:24 +0000 (11:35 +0200)
We can't reuse the same duration.

include/simgrid/s4u/conditionVariable.hpp

index f29a26d..252a4f1 100644 (file)
@@ -65,12 +65,6 @@ public:
   }
 
   // TODO, return std::cv_status
-  template<class P>
-  std::cv_status wait_for(std::unique_lock<Mutex>& lock, double duration, P pred)
-  {
-    while (!pred())
-      wait_for(lock, duration);
-  }
   // TODO,wait_until
 
   /**