diff options
| author | 2024-06-17 15:12:28 +0000 | |
|---|---|---|
| committer | 2024-06-17 15:12:28 +0000 | |
| commit | d24a9b14c3c9ab2acde794a7e8571875a8ac41ea (patch) | |
| tree | 67e20ed4d8b113e9b9cdeade9ed4818912c53f13 /libs/input/PointerController.cpp | |
| parent | f8a9bb954489dc2c220e0a6d47cae4c10b9c3d7c (diff) | |
Make mapElementsLazily thread-safe
in the previous version onEach could have been executed concurrently by several collectors. This new version doesn't have any mutable state.
Also making enabledDisplay an hot StateFlow.
Bug: 345472038
Test: DisplayRepositoryTest
Flag: com.android.systemui.enable_efficient_display_repository
Change-Id: Ifb3466f7c2a3216d6f9d7bed28a99d3edfb4d90f
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions