diff options
author | Josh Gao <jmgao@google.com> | 2017-05-30 17:03:41 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2017-05-30 17:09:42 -0700 |
commit | d1a3e8f1ab653831a3cc4c2a90fb0f8b7a2a95ac (patch) | |
tree | af71fddc34952661ac1b19980783a048d788e526 /debuggerd/debuggerd_test.cpp | |
parent | 0f185bb1484e22cf270c5807d0228880281e408f (diff) |
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
Diffstat (limited to 'debuggerd/debuggerd_test.cpp')
0 files changed, 0 insertions, 0 deletions