[Rpm-maint] [rpm-software-management/rpm] Turn nrefs into atomic_int (PR #3370)
Panu Matilainen
notifications at github.com
Mon Oct 14 06:37:44 UTC 2024
> To me https://en.cppreference.com/w/cpp/atomic/atomic/operator_arith reads like the value returned from the ++ and -- operators are indeed obtained atomically:
Yes, that much is atomic. But the number of actual references can change between the returned information and the comparison, it's a separate instruction already. It's not like I eat this stuff for breakfast either, but AIUI handling this requires the atomic compare-exchange thing. Of the memory models I've no idea either.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3370#issuecomment-2410162886
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3370/c2410162886 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241013/e85c3ef5/attachment.html>
More information about the Rpm-maint
mailing list