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

Commit 3487ce93 authored by François Degros's avatar François Degros
Browse files

Synchronize access to Job.mState

Since Job.cancel() can be called at any time from another thread than
the main thread running the job, proper care needs to be taken when
checking and updating the mState member to avoid "losing" or overwriting
a STATE_CANCELED state.

Bug: 422882630
Flag: EXEMPT fixing existing synchronization issues with Job.mState
Test: atest DocumentsUIGoogleTests:com.android.documentsui.services
Change-Id: I2e2ec38bda87892df602de61b5972948e7e7a454
parent e41deb4b
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