File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 21
21
//!
22
22
//! Each method takes an `Ordering` which represents the strength of
23
23
//! 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].
25
25
//!
26
26
//! [1]: http://llvm.org/docs/LangRef.html#memory-model-for-concurrent-operations
27
+ //! [2]: https://doc.rust-lang.org/nomicon/atomics.html
27
28
//!
28
29
//! Atomic variables are safe to share between threads (they implement `Sync`)
29
30
//! but they do not themselves provide the mechanism for sharing and follow the
@@ -141,6 +142,9 @@ unsafe impl<T> Sync for AtomicPtr<T> {}
141
142
///
142
143
/// Rust's memory orderings are [the same as
143
144
/// 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
144
148
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
145
149
#[ derive( Copy , Clone , Debug ) ]
146
150
pub enum Ordering {
You can’t perform that action at this time.
0 commit comments