Enum bitflags::__core::sync::atomic::Ordering 1.0.0
[−]
[src]
pub enum Ordering { Relaxed, Release, Acquire, AcqRel, SeqCst, }
Atomic memory orderings
Memory orderings limit the ways that both the compiler and CPU may reorder instructions around atomic operations. At its most restrictive, "sequentially consistent" atomics allow neither reads nor writes to be moved either before or after the atomic operation; on the other end "relaxed" atomics allow all reorderings.
Rust's memory orderings are the same as LLVM's.
Variants
Relaxed | No ordering constraints, only atomic operations. Corresponds to LLVM's
| |
Release | When coupled with a store, all previous writes become visible
to the other threads that perform a load with | |
Acquire | When coupled with a load, all subsequent loads will see data
written before a store with | |
AcqRel | When coupled with a load, uses | |
SeqCst | Like |
Trait Implementations
Derived Implementations
impl Debug for Ordering
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Clone for Ordering
fn clone(&self) -> Ordering
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more