Struct std::sync::Atomic

struct Atomic<T> { ... }

Values that can be operated on atomically.

Atomic supports all primitive types (integer types, pointers, bool), with the exception of zero-sized types (e.g. void). Some types (e.g. u128 and i128) may not be available on all platforms or require library support (libatomic).

Example

Methods

impl Atomic<T> { ... }

impl Atomic<T> { ... }