pub struct Condvar(_);
Expand description
Like std::sync::Condvar
.
Implementations
sourceimpl Condvar
impl Condvar
sourcepub fn wait<'a, T>(&self, guard: MutexGuard<'a, T>) -> MutexGuard<'a, T>
pub fn wait<'a, T>(&self, guard: MutexGuard<'a, T>) -> MutexGuard<'a, T>
Like std::sync::Condvar::wait
.
sourcepub fn wait_timeout<'a, T>(
&self,
guard: MutexGuard<'a, T>,
dur: Duration
) -> (MutexGuard<'a, T>, WaitTimeoutResult)
pub fn wait_timeout<'a, T>(
&self,
guard: MutexGuard<'a, T>,
dur: Duration
) -> (MutexGuard<'a, T>, WaitTimeoutResult)
Like std::sync::Condvar::wait_timeout
.
sourcepub fn notify_one(&self)
pub fn notify_one(&self)
Like std::sync::Condvar::notify_one
.
sourcepub fn notify_all(&self)
pub fn notify_all(&self)
Like std::sync::Condvar::notify_all
.
Auto Trait Implementations
impl !RefUnwindSafe for Condvar
impl Send for Condvar
impl Sync for Condvar
impl Unpin for Condvar
impl UnwindSafe for Condvar
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more