Struct timely::synchronization::barrier::Barrier[][src]

pub struct Barrier<A: Allocate> { /* fields omitted */ }

A re-usable barrier synchronization mechanism.

Implementations

impl<A: Allocate> Barrier<A>[src]

pub fn new(worker: &mut Worker<A>) -> Self[src]

Allocates a new barrier.

pub fn wait(&mut self)[src]

Blocks until all other workers have reached this barrier.

This method does not block dataflow execution, which continues to execute while we await the arrival of the other workers.

pub fn advance(&mut self)[src]

Advances this worker to the next barrier stage.

This change is not communicated until worker.step() is called.

pub fn reached(&mut self) -> bool[src]

Indicates that the barrier has been reached by all workers.

This method may not change until worker.step() is called.

Auto Trait Implementations

impl<A> !RefUnwindSafe for Barrier<A>

impl<A> !Send for Barrier<A>

impl<A> !Sync for Barrier<A>

impl<A> Unpin for Barrier<A>

impl<A> !UnwindSafe for Barrier<A>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.