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

Commit a8bc614b authored by JW Wang's avatar JW Wang
Browse files

Fix up the threading model (1/n)

1. add thread annotations
   - @WorkerThread: this method should run on the handler thread only
   - @AnyThread: this method is thread-safe
2. assert @WorkerThread methods really run on the handler thread
3. dispatch tasks to the handler thread where all state changes happen

TODO: remove locks in the next CL.

Bug: 158974169
Test: atest StagedRollbackTest
Change-Id: I64a5d494075daddc9a4b4fc330605987723f733d
parent 15b6c503
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