Skip to content

Commit

Permalink
Updating the description for BarrierWaitResult #29377
Browse files Browse the repository at this point in the history
  • Loading branch information
projektir committed Mar 31, 2017
1 parent 5c94997 commit 44d8b23
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/libstd/sync/barrier.rs
Expand Up @@ -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
///
Expand Down

0 comments on commit 44d8b23

Please sign in to comment.