Search posts, tags, users, and pages
Andrei Pechkurov
Top data race and segfault producer in the room.
Last time we discussed k-word CAS algorithm and came to the conclusion that seqlock-based atomic snapshots may be used as an alternative in situations when your writes are infrequent and single-writer limitation is acceptable, but you want the reader...
Aleksander Lantsov
Excellent article, thank you!
Why is the last access to the "version" variable in the reader (right after loadLoadFence) done with acquire semantics (instead of opaque)?
Thanks for the feedback.
As for the last getAcquire, I think you're right. Considering the prior loadLoadFence, it can be changed to getOpaque.
Aleksander Lantsov
Excellent article, thank you!
Why is the last access to the "version" variable in the reader (right after loadLoadFence) done with acquire semantics (instead of opaque)?