Document that Ordering::Relaxed is Monotonic

This commit is contained in:
Stefan O'Rear 2015-10-17 17:39:31 -07:00
parent 206af38e74
commit 1e68c91666

View file

@ -153,7 +153,8 @@ unsafe impl<T> Sync for AtomicPtr<T> {}
#[stable(feature = "rust1", since = "1.0.0")]
#[derive(Copy, Clone)]
pub enum Ordering {
/// No ordering constraints, only atomic operations.
/// No ordering constraints, only atomic operations. Corresponds to LLVM's
/// `Monotonic` ordering.
#[stable(feature = "rust1", since = "1.0.0")]
Relaxed,
/// When coupled with a store, all previous writes become visible