3aef5c82f7
Call adb_notify_device_scan_complete when we finish enumerating USB devices. The original intent of the code appears to have been to have adb_wait_for_device_initialization return as soon as we've finished looking around at the system USB environment on daemon startup, but at some point, we forgot to actually notify the init thread that we finished scanning all the USB devices, forcing the wait on init_cv to time out after three seconds on every daemon initialization. After this change, the daemon starts in a few milliseconds on my Linux machine Test: killall adb && sleep 1 && time adb server && adb shell ls Change-Id: I0bc1da7a597d2077dd2b591560d03798b05905b7 |
||
---|---|---|
.. | ||
adb_client.cpp | ||
adb_client.h | ||
adb_install.cpp | ||
adb_install.h | ||
auth.cpp | ||
bugreport.cpp | ||
bugreport.h | ||
commandline.cpp | ||
commandline.h | ||
console.cpp | ||
fastdeploy.cpp | ||
fastdeploy.h | ||
fastdeploycallbacks.cpp | ||
fastdeploycallbacks.h | ||
file_sync_client.cpp | ||
file_sync_client.h | ||
line_printer.cpp | ||
line_printer.h | ||
main.cpp | ||
transport_mdns.cpp | ||
usb_dispatch.cpp | ||
usb_libusb.cpp | ||
usb_linux.cpp | ||
usb_osx.cpp | ||
usb_windows.cpp |