Chromium Code Reviews
DescriptionUse USB hotplug events from libusb when possible.
When possible subscribe to the USB device add and remove events exposed
by libusb instead of refreshing the device list every time a client
requests a list of devices. In practice this means that hotplug events
are used on Linux (when udev is available) and OS X.
This is the first step to providing USB hotplug events on all platforms.
BUG=411715
Committed: https://crrev.com/0ae3a999fb424785077a9a34817d96bc79417ddf
Cr-Commit-Position: refs/heads/master@{#309946}
Patch Set 1 #
Total comments: 3
Patch Set 2 : Add a comment about libusb's thread-safety guarantees. #
Total comments: 1
Patch Set 3 : Share code on the device add path. #Patch Set 4 : Fix function spelling. #Patch Set 5 : Rebased. #
Messages
Total messages: 9 (2 generated)
|
||||||||||||||||||||||||||||