3 ms·
> box_ref.tag.store(COLLECTING_TAG.load(Ordering::Release)) Is it just me or do release semantics not make sense for a load? Release is for stores (I'm coming
by loeg 3y ago
> box_ref.tag.store(COLLECTING_TAG.load(Ordering::Release))
Is it just me or do release semantics not make sense for a load? Release is for stores (I'm coming from the C/C++ atomics model). Hm, the docs[1] say a Release load will panic:
> Panics if order is Release or AcqRel.
Maybe just a blog transcription typo for tag.store(TAG.load(Relaxed), Release).
[1]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicUsize.html#method.load https://doc.rust-lang.org/std/sync/atomic/struct.AtomicUsize...
- claytonwramsey 3y agoThis is correct, thank you. I'll fix it shortly.