summaryrefslogtreecommitdiff
path: root/libs/gui/QueueBufferInputOutput.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2019-10-14 16:28:19 -0700
committer Siarhei Vishniakou <svv@google.com> 2020-10-08 00:56:28 -0500
commita9a7ee88a99d73e90727b8a1680b2fa1d5c8bd5f (patch)
tree70c776349745031530652a0d9af1b5ab00c00ddd /libs/gui/QueueBufferInputOutput.cpp
parentad3b184c958aeccf5717b7948083ffad00ca8cb1 (diff)
Use shared_ptr for EventEntry
Instead of manual refcounting, use std::shared_ptr for EventEntry. This will make code less error-prone. We could probably keep unique pointers in mInboundQueue. The only problem is "mNextUnblockedEvent". One idea to work around this issue is to prune the queue using event id's instead. Another idea is to prune the queue right on the spot when queueing. That might not be OK because it would happen on the inputreader thread. Bug: 142581626 Bug: 167946924 Test: presubmit Change-Id: I6626017180da2d202e2e3acc7a8200107abde3d7
Diffstat (limited to 'libs/gui/QueueBufferInputOutput.cpp')
0 files changed, 0 insertions, 0 deletions