commit | 1ec15cd6ba17cf6aafb6211b10f8599869f75239 | [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 | d567efabd168ecb067a29ddacdf3cdc60c823b54 | |
parent | f1e19f8871cddbfb0f7a13517a7cc4926b9dcdbe [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