Struct loom::sync::Condvar [−][src]
pub struct Condvar { /* fields omitted */ }
Expand description
Mock implementation of std::sync::Condvar
.
Implementations
Creates a new condition variable which is ready to be waited on and notified.
Blocks the current thread until this condition variable receives a notification.
pub fn wait_timeout<'a, T>(
&self,
guard: MutexGuard<'a, T>,
_dur: Duration
) -> LockResult<(MutexGuard<'a, T>, WaitTimeoutResult)>
pub fn wait_timeout<'a, T>(
&self,
guard: MutexGuard<'a, T>,
_dur: Duration
) -> LockResult<(MutexGuard<'a, T>, WaitTimeoutResult)>
Waits on this condition variable for a notification, timing out after a specified duration.
Wakes up one blocked thread on this condvar.
Wakes up all blocked threads on this condvar.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Condvar
impl UnwindSafe for Condvar
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more