[Rpm-maint] [rpm-software-management/rpm] Rust bindings for rpmlib (#429)
Tony Arcieri
notifications at github.com
Fri Apr 13 19:57:08 UTC 2018
> you can take out a static global transaction which can be used where needed w/o a need to pass an rpmts through all the methods
I that case I could probably replace my global lock around the FFI with one around a global `TransactionSet` which is initialized as a `lazy_static` the same way I do the FFI global lock right now:
https://github.com/iqlusion-io/crates/blob/master/rpmlib/src/ffi.rs#L26
Then the global transaction set could be acquired internally (via locking) the same way I acquire the FFI now:
https://github.com/iqlusion-io/crates/blob/master/rpmlib/src/ts.rs#L24
...and at that point I don't really need an "FFI type" (which I added to have something to hold inside the global lock), the transaction set could be the entry point to acquiring the global lock.
Sounds good to me.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/429#issuecomment-381245212
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180413/60ef0edf/attachment.html>
More information about the Rpm-maint
mailing list