Expand description
atomic
module is a home for AtomicRef cell-like struct, used to perform thread-safe
operations using underlying hardware intristics.
Structs§
- Atomic reference holding a value, that’s supposed to be shared - potentially between multiple threads. Internally this value is hidden behind Arc reference, which is returned during AtomicRef::get method. This cell doesn’t allow to return &mut references to stored object. Instead updates can be performed as lock-free operation mutating function passed over during AtomicRef::update call.