atomicbox
atomicbox copied to clipboard
Use `AtomicPtr::get_mut` whenever possible
With access to &mut self or self, we are guaranteed to hold the only reference to the object, hence there is no need to read the pointer via atomic load.
I'm jumping into this crate today and fork it for maintaining in https://github.com/cratesland/mea/pull/52, with this PR integrated.