diff options
author | Richard Hughes <richard@hughsie.com> | 2022-10-05 16:18:40 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2022-10-12 15:58:15 +0100 |
commit | cfb40102b0985d52cbd5d9348dedd1a4cc06b10c (patch) | |
tree | e1d99c182dbe9cba6e49ef81233c42085ca8854f /README.md | |
parent | fcd54ab3ea6c69f3f9043cfdcf640921fecd3254 (diff) | |
download | gusb-cfb40102b0985d52cbd5d9348dedd1a4cc06b10c.tar.gz |
Use GRecMutex to avoid a single-threaded lockup
If we call libusb_get_bos_descriptor() in the hotplug device-add handler then
we eventually call libusb_handle_events_completed() which can run handle_events
-- which might emit devices.
Using a mutex that's safe for recursing prevents the deadlock.
This fixes half the problem when getting descriptors on deeply nested USB hubs.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions