summaryrefslogtreecommitdiff
path: root/libutils/FileMap_test.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2020-05-19 15:57:06 -0700
committerJosh Gao <jmgao@google.com>2020-05-21 14:55:46 -0700
commit6da375fdc91c7d32a316bfea022f315512c6f08c (patch)
tree68e2dd2ef98d072557ed61780cf6ae0749b73be1 /libutils/FileMap_test.cpp
parent2081cf31b36127eabf6efadeb8e58fe664b7bf77 (diff)
adb: only submit USB writes on the worker thread.
After USB disconnection, io_submit will block until the endpoint comes back up. We handle this in the worker thread by sending it a signal to break it out of io_submit when we notice that USB has gone down, but opportunistic writes from the main thread can get stuck in this scenario as well. Submitting the writes only on the worker thread doesn't have a measurable impact on performance, so avert this scenario by only submitting writes from the worker thread. Bug: http://b/157078255 Test: test_device.py Change-Id: I1118f2e2a70d13f15592eb996e7084033ed5cb9d (cherry picked from commit 962551000b46a47e640ca0e7b719c66b721233ae)
Diffstat (limited to 'libutils/FileMap_test.cpp')
0 files changed, 0 insertions, 0 deletions