Skip to content

Commit 9e4d5cf

Browse files
authored
Rollup merge of rust-lang#49170 - steveklabnik:gh49127, r=nagisa
Clarify AcqRel's docs This implied things that are not true. Fixes rust-lang#49127
2 parents fc9dfda + 23013c7 commit 9e4d5cf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/libcore/sync/atomic.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,11 @@ pub enum Ordering {
205205
/// [`Release`]: http://llvm.org/docs/Atomics.html#release
206206
#[stable(feature = "rust1", since = "1.0.0")]
207207
Acquire,
208-
/// When coupled with a load, uses [`Acquire`] ordering, and with a store
209-
/// [`Release`] ordering.
208+
/// Has the effects of both [`Acquire`] and [`Release`] together.
209+
///
210+
/// This ordering is only applicable for operations that combine both loads and stores.
211+
///
212+
/// For loads it uses [`Acquire`] ordering. For stores it uses the [`Release`] ordering.
210213
///
211214
/// [`Acquire`]: http://llvm.org/docs/Atomics.html#acquire
212215
/// [`Release`]: http://llvm.org/docs/Atomics.html#release

0 commit comments

Comments
 (0)