File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -140,10 +140,15 @@ unsafe impl<T> Sync for AtomicPtr<T> {}
140
140
/// to be moved either before or after the atomic operation; on the other end
141
141
/// "relaxed" atomics allow all reorderings.
142
142
///
143
+ /// If you are confused or don't have enough time to research which ordering to use, use `SeqCst`.
144
+ /// Of all the options it has the most unsurpising effect (see the nomicon for details. [1])
145
+ /// The downside is you miss out on several optimizations the other orderings offer.
146
+ ///
143
147
/// Rust's memory orderings are [the same as
144
148
/// LLVM's](http://llvm.org/docs/LangRef.html#memory-model-for-concurrent-operations).
145
149
///
146
- /// For more information see the [nomicon](https://doc.rust-lang.org/nomicon/atomics.html).
150
+ /// For more information see the [nomicon][1].
151
+ /// [1]: https://doc.rust-lang.org/nomicon/atomics.html
147
152
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
148
153
#[ derive( Copy , Clone , Debug ) ]
149
154
pub enum Ordering {
You can’t perform that action at this time.
0 commit comments