From 110bcc97984fec55cb6c0bd5313bcd8ee02da12c Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 7 Aug 2018 11:26:05 +0200 Subject: forgot to add comment for some atomic types --- src/libcore/sync/atomic.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/libcore/sync') diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs index 3f35067f4f5..7867998d058 100644 --- a/src/libcore/sync/atomic.rs +++ b/src/libcore/sync/atomic.rs @@ -843,7 +843,8 @@ impl AtomicPtr { /// was updated. /// /// `compare_and_swap` also takes an [`Ordering`] argument which describes the memory - /// ordering of this operation. + /// ordering of this operation. Notice that even when using [`AcqRel`], the operation + /// might fail and hence just perform an `Acquire` load, but not have `Release` semantics. /// /// [`Ordering`]: enum.Ordering.html /// @@ -1202,7 +1203,8 @@ The return value is always the previous value. If it is equal to `current`, then value was updated. `compare_and_swap` also takes an [`Ordering`] argument which describes the memory -ordering of this operation. +ordering of this operation. Notice that even when using [`AcqRel`], the operation +might fail and hence just perform an `Acquire` load, but not have `Release` semantics. [`Ordering`]: enum.Ordering.html -- cgit 1.4.1-3-g733a5