Expand description
§xarc
xarc
provides atomically swappable atomically refcounted smart pointers
as a safer building block for lockfree algorithms than raw atomic pointers.
Xarc
is comparable to Arc
but with the additional ability to atomically
be swapped into and out of AtomicXarc
.
Xarc
is dereferenceable but cannot have its contents atomically swapped.
AtomicXarc
can have its contents atomically swapped but is not dereferenceable.
Structs§
- Atomic
Xarc AtomicXarc
provides atomic storage forXarc
atomically refcounted smart pointers.- Xarc
Xarc
is a derefenceable atomically refcounted smart pointer.Xarc
is roughly equivalent toArc
but is compatible withAtomicXarc
.