pub fn wait<'a, T>(&'static self, guard: MutexGuard<'a, T>)
                       -> LockResult<MutexGuard<'a, T>> {
        let poisoned = unsafe {
            let lock = mutex::guard_lock(&guard);
            self.verify(lock);
            self.inner.wait(lock);
            mutex::guard_poison(&guard).get()
        };
        if poisoned {
            Err(PoisonError::new(guard))
        } else {
            Ok(guard)
        }
    }
/// Blocks the current thread until this condition variable receives a
/// notification.
///
/// See `Condvar::wait`.
Blocks the current thread until this condition variable receives a
notification.

See `Condvar::wait`.
Blocks the current thread until this condition variable receives a notification . See ` Condvar :: wait ` .
pub fn wait<'a, T>(&'static self, guard: MutexGuard<'a, T>)
                       -> LockResult<MutexGuard<'a, T>> {
        let poisoned = unsafe {
            let lock = mutex::guard_lock(&guard);
            self.verify(lock);
            self.inner.wait(lock);
            mutex::guard_poison(&guard).get()
        };
        if poisoned {
            Err(PoisonError::new(guard))
        } else {
            Ok(guard)
        }
    }
pub fn wait < ' a , T > ( & ' static self , guard : MutexGuard < ' a , T > ) -> LockResult < MutexGuard < ' a , T > > { let poisoned = unsafe { let lock = mutex :: guard_lock ( & guard ) ; self . verify ( lock ) ; self . inner . wait ( lock ) ; mutex :: guard_poison ( & guard ) . get ( ) } ; if poisoned { Err ( PoisonError :: new ( guard ) ) } else { Ok ( guard ) } }
Blocks the current thread until this condition variable receives a
notification.
Blocks the current thread until this condition variable receives a notification .
&'static self
guard
MutexGuard<'a, T>
&'static self
guard
MutexGuard<'a, T>