Struct condition_variable::ConditionVariable [] [src]

pub struct ConditionVariable<T> {
    // some fields omitted
}

Methods

impl<T: PartialEq + Clone> ConditionVariable<T>
[src]

fn new(value: T) -> ConditionVariable<T>

fn set(&mut self, value: T, notify: Notify)

fn get(&self) -> Result<T, PoisonError<MutexGuard<T>>>

fn wait_for(&self, expected: T) -> Result<()PoisonError<MutexGuard<T>>>

fn wait_for_ms(&self, expected: T, timeout_ms: i64) -> Result<boolPoisonError<(MutexGuard<T>, bool)>>

impl ConditionVariable<()>
[src]

fn wait_ms(&self, timeout_ms: u32) -> LockResult<(MutexGuard<()>, bool)>

waits for a notify (useful if T==())