[Rpm-maint] [rpm-software-management/rpm] Add a rpmKeyring iterator (PR #3365)

Panu Matilainen notifications at github.com
Fri Oct 11 06:15:12 UTC 2024


@pmatilai commented on this pull request.



> @@ -35,6 +35,14 @@ struct rpmKeyring_s {
     std::shared_mutex mutex;
 };
 
+struct rpmKeyringIterator_s {
+    rpmKeyring keyring;
+    rdlock * keyringlock;
+    std::map<std::string,rpmPubkey>::const_iterator iterator;
+    rpmPubkey current;
+    std::shared_mutex mutex;

You can have multiple threads with an iterator in each, but you can't share an iterator across multiple threads, that just doesn't make any sense.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3365#discussion_r1796470500
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/3365/review/2362027794 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241010/4306edff/attachment-0001.html>


More information about the Rpm-maint mailing list