mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
Rollup merge of #40977 - projektir:BarrierWaitResult_doc, r=steveklabnik
Updating the description for BarrierWaitResult #29377 Referencing `Barrier`, removing reference to `is_leader`.
This commit is contained in:
@@ -50,12 +50,11 @@ struct BarrierState {
|
||||
generation_id: usize,
|
||||
}
|
||||
|
||||
/// A result returned from wait.
|
||||
/// A `BarrierWaitResult` is returned by [`wait`] when all threads in the [`Barrier`]
|
||||
/// have rendezvoused.
|
||||
///
|
||||
/// Currently this opaque structure only has one method, [`.is_leader`]. Only
|
||||
/// one thread will receive a result that will return `true` from this function.
|
||||
///
|
||||
/// [`.is_leader`]: #method.is_leader
|
||||
/// [`wait`]: struct.Barrier.html#method.wait
|
||||
/// [`Barrier`]: struct.Barrier.html
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user