summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2022-10-05 16:18:40 +0100
committerRichard Hughes <richard@hughsie.com>2022-10-12 15:58:15 +0100
commitcfb40102b0985d52cbd5d9348dedd1a4cc06b10c (patch)
treee1d99c182dbe9cba6e49ef81233c42085ca8854f /docs
parentfcd54ab3ea6c69f3f9043cfdcf640921fecd3254 (diff)
downloadgusb-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 'docs')
0 files changed, 0 insertions, 0 deletions