Skip to content
Commit c8ecacc0 authored by Evan Rosky's avatar Evan Rosky
Browse files

Fix potential deadlock in transactions

It was possible to hit a deadlock scenario when using the
waitAsyncStart utility. Since that was using the main handler
for unlocked work, if the transaction was applied from the
main handler thread, it would deadlock (this happens when
transactions are queued-up on syncengine). This adds a check
and will run the uncommon queued launches on anim-thread
(which is 1 higher priority).

This also has the waitAsyncStart function actually return
the result so that we can properly observe the effects of
a PendingIntent

Bug: 271317661
Bug: 267738124
Test: System still runs and tests pass.
Change-Id: If99668b71cafe016b1ab2aad501c53d246e2877d
parent f362c2d7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment