We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c268b39 commit 01bf220Copy full SHA for 01bf220
library/std/src/sync/barrier.rs
@@ -68,6 +68,8 @@ impl Barrier {
68
/// A barrier will block `n`-1 threads which call [`wait()`] and then wake
69
/// up all threads at once when the `n`th thread calls [`wait()`].
70
///
71
+ /// If `n` is 0, the barrier acts the same as `n` is 1.
72
+ ///
73
/// [`wait()`]: Barrier::wait
74
75
/// # Examples
0 commit comments