summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Lee Shombert <shombert@google.com> 2025-01-14 13:34:51 -0800
committer Lee Shombert <shombert@google.com> 2025-01-14 13:34:51 -0800
commit94ee6d726a143ea40a574e3a45afe4aa1e022958 (patch)
treee6c5875461242fb871a6b1e7611540130a74e375 /libs/androidfw/ApkParsing.cpp
parentdd4984e9733e3f3b3e35af8dd4af28aed2634061 (diff)
Dispatch pending events outside a lock
This minimizes the time that dispatchPending() holds the mCallback lock. mPendingEvents (which is guarded by mCallback) is copied to an array inside the lock. Any pending events are then transmitted outside the lock. This is done so that, if the client is frozen during transmission (unlikely), the binder callback will not be blocked. Flag: com.android.server.am.defer_display_events_when_frozen Bug: 298055811 Test: atest * DisplayServiceTests * CtsDisplayTestCases Change-Id: Iaeedd8d67caba44dd0a0517316f39bb8d756ea17
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions