commit | 707a6e469f9c9621f09f42c6c5419587580398ab | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Mon May 08 17:51:07 2017 -0700 |
committer | Josh Gao <jmgao@google.com> | Tue May 09 14:30:13 2017 -0700 |
tree | 86f00df03a3f859b7528592fd494246694ce046b | |
parent | 84606f8686cf486b19644e2ac167dd2a6868805b [diff] |
adb: libusb: replace sleep with timed CV wait. Instead of sleeping for 500ms at the end of every device poll loop, use a timed condition variable wait so that we can tell the device poll thread to immediately commit suicide. Bug: http://b/37869663 Test: adb kill-server; adb start-server Change-Id: I597071866f7d9ef91900411727345d32c1a97556