Skip to content

Commit

Permalink
Rollup merge of rust-lang#49170 - steveklabnik:gh49127, r=nagisa
Browse files Browse the repository at this point in the history
Clarify AcqRel's docs

This implied things that are not true.

Fixes rust-lang#49127
  • Loading branch information
TimNN authored Mar 26, 2018
2 parents fc9dfda + 23013c7 commit 9e4d5cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/libcore/sync/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,11 @@ pub enum Ordering {
/// [`Release`]: http://llvm.org/docs/Atomics.html#release
#[stable(feature = "rust1", since = "1.0.0")]
Acquire,
/// When coupled with a load, uses [`Acquire`] ordering, and with a store
/// [`Release`] ordering.
/// Has the effects of both [`Acquire`] and [`Release`] together.
///
/// This ordering is only applicable for operations that combine both loads and stores.
///
/// For loads it uses [`Acquire`] ordering. For stores it uses the [`Release`] ordering.
///
/// [`Acquire`]: http://llvm.org/docs/Atomics.html#acquire
/// [`Release`]: http://llvm.org/docs/Atomics.html#release
Expand Down

0 comments on commit 9e4d5cf

Please sign in to comment.