| Summary: | Thread safety issues in packagekit-glib | ||
|---|---|---|---|
| Product: | PackageKit | Reporter: | Giovanni Campagna <scampa.giovanni> |
| Component: | client-library | Assignee: | Richard Hughes <richard> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | medium | ||
| Version: | unspecified | ||
| Hardware: | Other | ||
| OS: | All | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
| Attachments: |
PkTask: make thread-default-context aware
PkTaskSync: don't iterate the default main context |
||
|
Description
Giovanni Campagna
2013-09-17 21:17:28 UTC
Created attachment 86022 [details] [review] PkTask: make thread-default-context aware We must install idle sources in the right main context, otherwise PkTask becomes impossible to use thread safely. Created attachment 86023 [details] [review] PkTaskSync: don't iterate the default main context Iterating the default main context is wrong in all occasions (as most applications are not prepared to deal with the reentrancy caused by gtk+ sources). It becomes even more wrong if the library is supposed to be thread safe, and the method is called from a secondary thread. Both applied, thanks! |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.