Enum std::sync::atomic::OrderingStable
[-] [+]
[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 C++'s.