commit | 3985a63ea688eecdc0a498b025d42411c34ef177 | [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 | 46f981e959d7a14a3a0bc7dce450933bc259fe13 [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