Module crossbeam_utils::atomic::atomic_cell
source · Macros
- atomic 🔒
Structs
- A thread-safe mutable memory location.
- An atomic
()
.
Functions
- Atomically compares data at
dst
tocurrent
and, if equal byte-for-byte, exchanges data atdst
withnew
. - Returns
true
if operations onAtomicCell<T>
are lock-free. - atomic_load 🔒 ⚠Atomically reads data from
src
. - atomic_store 🔒 ⚠Atomically writes
val
todst
. - atomic_swap 🔒 ⚠Atomically swaps data at
dst
withval
. - Returns
true
if values of typeA
can be transmuted into values of typeB
. - lock 🔒Returns a reference to the global lock associated with the
AtomicCell
at addressaddr
.