[Rpm-maint] [rpm-software-management/rpm] Turn nrefs into atomic_int (PR #3370)
Florian Festi
notifications at github.com
Mon Oct 14 07:29:26 UTC 2024
Yes, this was an issue in the previous code as it did the comparison first and then decided what to do. This here is different. If nrefs reaches 0 it is no longer allowed to change as no one should have a reference. So if the -- returns zero there is no longer a race going on. So we can do the comparison later and then free the instance in peace.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3370#issuecomment-2410271855
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3370/c2410271855 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241014/6e469342/attachment.html>
More information about the Rpm-maint
mailing list