summaryrefslogtreecommitdiff
path: root/libs/gui/BLASTBufferQueue.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2023-09-05 18:24:44 -0700
committer Siarhei Vishniakou <svv@google.com> 2023-09-07 02:19:45 +0000
commitad16bf27ab695919347965d917de3c1c7ed5cb0f (patch)
tree8768138c4d1e16844dfef33e7d2228670ab86427 /libs/gui/BLASTBufferQueue.cpp
parent19b1c65ca598cb661b2aeb06b73774c2de4b4790 (diff)
Protect pulled data in LatencyAggregator with a lock
The data pull happens on a binder thread, which is different from the thread where the sketches are collected. Before this CL, the data was modified by the puller, so it could potentially be corrupted if the user happened to use the device at the same time. This is a speculative fix to the infinite loop that we are observing inside CompactStack. Bug: 298423577 Test: atest libinput_tests inputflinger_tests Change-Id: I624fb3bd59e3c314edc3b1facf424c306e95b71e
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions