Module core::atomicStable [-]  [+] [src]

Core atomic primitives

Reexports

pub use self::Ordering::*;

Structs

AtomicBool

An atomic boolean type.

AtomicInt

A signed atomic integer type, supporting basic atomic arithmetic operations

AtomicPtr

An unsafe atomic pointer. Only supports basic atomic operations

AtomicUint

An unsigned atomic integer type, supporting basic atomic arithmetic operations

Enums

Ordering

Atomic memory orderings

Constants

pub const INIT_ATOMIC_BOOL: AtomicBool = AtomicBool { v: UnsafeCell { value: 0 }, nocopy: marker::NoCopy }

An AtomicBool initialized to false

 
pub const INIT_ATOMIC_INT: AtomicInt = AtomicInt { v: UnsafeCell { value: 0 }, nocopy: marker::NoCopy }

An AtomicInt initialized to 0

 
pub const INIT_ATOMIC_UINT: AtomicUint = AtomicUint { v: UnsafeCell { value: 0, }, nocopy: marker::NoCopy }

An AtomicUint initialized to 0

 

Functions

fence

An atomic fence.