platform_system_core/adb/client
Josh Gao d1a3e8f1ab adb: fix deadlock.
libusb hotplug callbacks are called with the libusb lock taken, and we
call into libusb with our local mutex, so we need to enforce an ordering
between the two. Instead of calling device_connected or
device_disconnected directly, enqueue them onto the main thread.

Bug: http://b/62200735
Test: manually hotplugged a device
Change-Id: Ic5d55db83b47f4bb60f124ce94ddfe06f5f1a0c6
2017-05-30 17:09:42 -07:00
..
main.cpp adb: redirect stdout/stderr before initializing usb. 2017-05-18 13:38:50 -07:00
usb_dispatch.cpp adb: fix darwin build break. 2017-05-10 13:58:51 -07:00
usb_libusb.cpp adb: fix deadlock. 2017-05-30 17:09:42 -07:00
usb_linux.cpp adb: fix darwin build break. 2017-05-10 13:58:51 -07:00
usb_osx.cpp adb: fix darwin build break. 2017-05-10 13:58:51 -07:00
usb_windows.cpp adb: move all cleanup to a function with defined ordering. 2017-05-09 14:32:47 -07:00