Skip to content

Commit a448532

Browse files
authored
Rollup merge of #39200 - DirkyJerky:patch-1, r=steveklabnik
Docs for atomic orderings: link to the 'nomicon article for further reading
2 parents e113038 + c0a5b99 commit a448532

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/libcore/sync/atomic.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
//!
2222
//! Each method takes an `Ordering` which represents the strength of
2323
//! the memory barrier for that operation. These orderings are the
24-
//! same as [LLVM atomic orderings][1].
24+
//! same as [LLVM atomic orderings][1]. For more information see the [nomicon][2].
2525
//!
2626
//! [1]: http://llvm.org/docs/LangRef.html#memory-model-for-concurrent-operations
27+
//! [2]: https://doc.rust-lang.org/nomicon/atomics.html
2728
//!
2829
//! Atomic variables are safe to share between threads (they implement `Sync`)
2930
//! but they do not themselves provide the mechanism for sharing and follow the
@@ -141,6 +142,9 @@ unsafe impl<T> Sync for AtomicPtr<T> {}
141142
///
142143
/// Rust's memory orderings are [the same as
143144
/// LLVM's](http://llvm.org/docs/LangRef.html#memory-model-for-concurrent-operations).
145+
///
146+
/// For more information see the [nomicon][1].
147+
/// [1]: https://doc.rust-lang.org/nomicon/atomics.html
144148
#[stable(feature = "rust1", since = "1.0.0")]
145149
#[derive(Copy, Clone, Debug)]
146150
pub enum Ordering {

0 commit comments

Comments
 (0)