You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// The condition variable provides the following features:
507
507
/// * wait on the condition variable: [wait](BasicConditionVariableInterface::wait()), [timed_wait](BasicConditionVariableInterface::timed_wait())
508
-
/// * wait until a defined condition occurs: [wait_while](MultiConditionVariable::wait_while()), [timed_wait_while](MultiConditionVariable::timed_wait_while())
508
+
/// * wait until a defined condition occurs: [blocking_wait_while](MultiConditionVariable::blocking_wait_while()), [timed_wait_while](MultiConditionVariable::timed_wait_while())
509
509
/// * modify condition variable and then notify waiters:
fail!(from self, when self.mutex.lock(),"Failed to lock mutex in wait_while.");
596
+
letmut guard = fail!(from self, when self.mutex.lock(),"Failed to lock mutex in blocking_wait_while.");
598
597
599
598
while !(predicate)(&mut*guard){
600
599
self.condvar.pthread_wait(&self.mutex)?;
@@ -742,7 +741,7 @@ impl<T: Debug> Drop for ConditionVariableGuard<'_, '_, '_, T> {
742
741
}
743
742
744
743
/// Condition variable which requires a fixed predicate on creation which is then used in
745
-
/// [`ConditionVariable::wait_while()`] and
744
+
/// [`ConditionVariable::blocking_wait_while()`] and
746
745
/// [`ConditionVariable::timed_wait_while()`] concurrently with the benefit of triggering
747
746
/// single waiters.
748
747
/// The reason is when one waits on multiple
@@ -758,7 +757,7 @@ impl<T: Debug> Drop for ConditionVariableGuard<'_, '_, '_, T> {
758
757
/// is written.
759
758
/// The condition variable provides the following features:
760
759
/// * wait on the condition variable: [wait](BasicConditionVariableInterface::wait()), [timed_wait](BasicConditionVariableInterface::timed_wait())
761
-
/// * wait until a defined condition occurs: [wait_while](ConditionVariable::wait_while()), [timed_wait_while](ConditionVariable::timed_wait_while())
760
+
/// * wait until a defined condition occurs: [blocking_wait_while](ConditionVariable::blocking_wait_while()), [timed_wait_while](ConditionVariable::timed_wait_while())
762
761
/// * modify condition variable and then notify waiters:
0 commit comments