Lines Matching full:wait
35 /// println!("before wait");
36 /// c.wait();
37 /// println!("after wait");
40 /// // Wait for other threads to finish.
56 /// A `BarrierWaitResult` is returned by [`wait`] when all threads in the [`Barrier`]
59 /// [`wait`]: struct.Barrier.html#method.wait
68 /// let barrier_wait_result = barrier.wait();
100 /// println!("before wait");
101 /// c.wait();
102 /// println!("after wait");
105 /// // Wait for other threads to finish.
110 pub fn wait(&self) -> BarrierWaitResult { in wait() method
137 /// A barrier will block `n`-1 threads which call [`wait`] and then wake up
138 /// all threads at once when the `n`th thread calls [`wait`]. A Barrier created
141 /// [`wait`]: #method.wait
162 /// Returns whether this thread from [`wait`] is the "leader thread".
167 /// [`wait`]: struct.Barrier.html#method.wait
175 /// let barrier_wait_result = barrier.wait();
201 tx.send(c.wait().is_leader()).unwrap(); in use_barrier()
212 let mut leader_found = barrier.wait().is_leader(); in use_barrier()