Module crossbeam_utils::atomic::atomic_cell
source ยท Macrosยง
- atomic ๐
- impl_arithmetic ๐
Structsยง
- A thread-safe mutable memory location.
- AtomicUnit ๐An atomic
()
.
Functionsยง
- atomic_compare_exchange_weak ๐ โAtomically compares data at
dst
tocurrent
and, if equal byte-for-byte, exchanges data atdst
withnew
. - atomic_is_lock_free ๐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
. - can_transmute ๐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
.