Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94ee6d72 authored by Lee Shombert's avatar Lee Shombert
Browse files

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
parent dd4984e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment