summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Andy Chen <achen73@ford.com> 2022-08-29 20:07:10 -0400
committer Prabir Pradhan <prabirmsp@google.com> 2022-09-06 15:39:52 +0000
commitf9f1a0247a54d6ae55ac1dcdc0a4e96aad9ac9f2 (patch)
tree1c6861d02b8d6bc35194e536520fa5ce3263fa3d /libs/gui/BufferQueueThreadState.cpp
parent0b2413f6f1687bee287dcf2e48c8092640d311f7 (diff)
Avoid UI freezing when reading battery capacity/status
Reading battery capacity and status could fail and end up with timeout after 5s for some input devices, for example: 8BitDo SN30 Pro+ gamepad. Before reading those items, it would be better to release `mLock` so that other threads could run. Bug: 244088945 Test: Manually verified no UI freezing when calling `inputDevice.batteryState.capacity` or `inputDevice.batteryState.status` Change-Id: Ibb6b8c999b7fd4fe7fbcc57264a1fe6ad74903dc
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions