[][src]Struct sync_panic::Condvar

pub struct Condvar { /* fields omitted */ }

A Condition Variable.

Methods

impl Condvar[src]

pub fn new() -> Condvar[src]

Creates a new condvar that is ready to be waited on.

pub fn wait<'a, T>(&self, guard: MutexGuard<'a, T>) -> MutexGuard<'a, T>[src]

Waits on a condvar, blocking the current thread until it is notified.

pub fn notify_one(&self)[src]

Notifies one thread blocked by this condvar.

pub fn notify_all(&self)[src]

Notifies all threads blocked by this condvar.

Trait Implementations

impl Default for Condvar[src]

impl Debug for Condvar[src]

Auto Trait Implementations

impl Send for Condvar

impl Sync for Condvar

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]