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

Commit 05d42ad0 authored by Garfield Tan's avatar Garfield Tan
Browse files

Ensure long wait time for the first item in PersisterQueue

Unit tests revealed a race condition where mNextWriteTime set in the
first PersisterQueue#addItem() can be overwritten by
PersisterQueue#processNextItem() if the item is added quickly after
starting the writer thread. This could defeat the overall purpose of
having a long wait to avoid competing with critical resources system
boots need.

Bug: 402243483
Test: atest --iterations 20 PersisterQueueTests
Flag: EXEMPT bug fix
Change-Id: I6ca44618999aca4674d6a8fbc5e02592dd25169a
parent 0fa17c84
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