Struct pulse::Barrier
[−]
[src]
pub struct Barrier { /* 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]
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