atomicbox icon indicating copy to clipboard operation
atomicbox copied to clipboard

Use `AtomicPtr::get_mut` whenever possible

Open bdbai opened this issue 8 months ago • 1 comments

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.

bdbai avatar Apr 20 '25 07:04 bdbai

I'm jumping into this crate today and fork it for maintaining in https://github.com/cratesland/mea/pull/52, with this PR integrated.

tisonkun avatar May 31 '25 08:05 tisonkun