diff options
| author | 2024-10-23 19:44:10 +0000 | |
|---|---|---|
| committer | 2024-10-24 15:11:03 +0000 | |
| commit | 93678d42c554c3b6e179960e76f5d2b9f294f299 (patch) | |
| tree | aa8c3f3cff55e3d6e9399396fd8265259b938ad0 /libs/androidfw/StringPool.cpp | |
| parent | 43776a28be57abcaa53407c7684e5195f77db793 (diff) | |
Remove MutableStateFlow for transition current info
When multiple threads are attempting to begin transitions,
the MutableStateFlow can get stuck on a background thread
while emitting the update the consumers. This leaves a
small chance for other transitions to jump the queue, ones
that are scheduled onto a more favorable thread.
Avoid MutableStateFlow completely. There's no need, just
use a volatile to store state.
Fixes: 358533338
Test: atest KeyguardTransitionRepositoryTest
Flag: com.android.systemui.transition_race_condition
Change-Id: I1daf9d5074c966445a1ed54acc10fb91193d6c85
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions