Crate atomicdouble[][src]

Expand description

AtomicDouble<T> wrapper type supporting only 128-bit atomics

Atomic types provide primitive shared-memory communication between threads, and are the building blocks of other concurrent types. Double width atomics are an essential part of many lock free algorithms to avoid the ABA problem.

The library provides a wrapper type AtomicDouble<T>. This wrapper provides 128-bit atomic operations for T: Copy types. For types that doesnt support 128-bit atomics, fallback implementation using spin-lock is provided.

Each method takes an Ordering which represents the strength of the memory barrier for that operation. These orderings are the same as LLVM atomic orderings.


Wrapper type that provides the 128-bit atomic operations


Atomic memory orderings


An atomic fence.