Module crossbeam_utils::atomic::atomic_cell
source ยท Macrosยง
- atomic ๐
- impl_
arithmetic ๐
Structsยง
- A thread-safe mutable memory location.
- Atomic
Unit ๐An atomic()
.
Functionsยง
- atomic_
compare_ ๐ โexchange_ weak Atomically compares data atdst
tocurrent
and, if equal byte-for-byte, exchanges data atdst
withnew
. - atomic_
is_ ๐lock_ free Returnstrue
if operations onAtomicCell<T>
are lock-free. - atomic_
load ๐ โAtomically reads data fromsrc
. - atomic_
store ๐ โAtomically writesval
todst
. - atomic_
swap ๐ โAtomically swaps data atdst
withval
. - can_
transmute ๐Returnstrue
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
.