Struct timely::synchronization::barrier::Barrier [−][src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,