A barrier enables multiple threads to synchronize the beginning of some computation.
Creates a new barrier that can block a given number of threads.
pub fn wait(&self) -> BarrierWaitResult[src]
Blocks the current thread until all threads have rendezvoused here.
Barriers are re-usable after all threads have rendezvoused once, and can be used continuously.
A single (arbitrary) thread will receive a
is_leader when returning from this function, and
all other threads will receive a result that will return
Auto Trait Implementations
impl !RefUnwindSafe for Barrier
impl UnwindSafe for Barrier
type Error = Infallible
The type returned in the event of a conversion error.