Chromium Code Reviews
DescriptionEnsure libusb_close is called from the FILE thread.
If libusb_close is called from the UsbEventHandler thread then it will
deadlock trying to reacquire libusb's open_devs_lock. To avoid this and
generally ensure that libusb calls happen on the FILE thread this patch
posts a task if the UsbDeviceHandleImpl destructor is not already
running on the FILE thread.
BUG=589592
Committed: https://crrev.com/449dde0f87ac33b516a1186398d17edbd75e4ee9
Cr-Commit-Position: refs/heads/master@{#377821}
Patch Set 1 #
Messages
Total messages: 17 (7 generated)
|
|||||||||||||||||||