diff options
author | Josh Gao <jmgao@google.com> | 2017-05-08 17:51:07 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2017-05-09 14:30:13 -0700 |
commit | 707a6e469f9c9621f09f42c6c5419587580398ab (patch) | |
tree | 86f00df03a3f859b7528592fd494246694ce046b /libutils/FileMap.cpp | |
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
Diffstat (limited to 'libutils/FileMap.cpp')
0 files changed, 0 insertions, 0 deletions