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

Core atomic primitives

Reexports

pub use self::Ordering::*;

Structs

AtomicBool

A boolean type which can be safely shared between threads.

AtomicInt

A signed integer type which can be safely shared between threads.

AtomicPtr

A raw pointer type which can be safely shared between threads.

AtomicUint

An unsigned integer type which can be safely shared between threads.

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.