Skip to content

Commit 1e68c91

Browse files
committed
Document that Ordering::Relaxed is Monotonic
1 parent 206af38 commit 1e68c91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libcore/sync/atomic.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ unsafe impl<T> Sync for AtomicPtr<T> {}
153153
#[stable(feature = "rust1", since = "1.0.0")]
154154
#[derive(Copy, Clone)]
155155
pub enum Ordering {
156-
/// No ordering constraints, only atomic operations.
156+
/// No ordering constraints, only atomic operations. Corresponds to LLVM's
157+
/// `Monotonic` ordering.
157158
#[stable(feature = "rust1", since = "1.0.0")]
158159
Relaxed,
159160
/// When coupled with a store, all previous writes become visible

0 commit comments

Comments
 (0)