Struct pulse::Barrier [] [src]

pub struct Barrier {
    // some fields omitted
}

A Barrier can listen for 1 or more Signals. It will only transition to a Pulsed state once all the Signals have Pulsed.

Methods

impl Barrier
[src]

fn new(pulses: &[Signal]) -> Barrier

Create a new Barrier from an Vector of Siganls

Trait Implementations

impl Signals for Barrier
[src]

fn signal(&self) -> Signal

Get a signal from a object

fn wait(&self) -> Result<()WaitError>

Block the current thread until the object assets a pulse. Read more

fn wait_timeout_ms(&self, ms: u32) -> Result<()TimeoutError>

Block the current thread until the object assets a pulse. Or until the timeout has been asserted. Read more