summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Jordan Demeulenaere <jdemeulenaere@google.com> 2024-05-14 10:59:40 +0200
committer Jordan Demeulenaere <jdemeulenaere@google.com> 2024-05-21 17:14:36 +0200
commitb93b830ac542d60c754a6b0ca11f4dcffe6bd5ab (patch)
tree93115165eb22ed510459cf40d65deed48a21d09c /libs/androidfw/StringPool.cpp
parentd8ce27e6c68eaff9f3b72c260085709b517c3737 (diff)
Enforce that STLState is mutated on the right thread
SceneTransitionLayoutState currently does not do any synchronization to support mutation from different threads. Usually this is not an issue because most state changes naturally happen on the main thread, but I noticed that it was causing some flakiness issues in tests given that those run in a thread different than the main thread. This CL enforces that all mutations of a STLState are done in the same thread in which the state was created. If that STLState is used by a SceneTransitionLayout, we also check that the thread is the same (which is usually the main thread). Bug: 290930950 Test: atest PlatformComposeSceneTransitionLayoutTests Flag: com.android.systemui.scene_container Change-Id: Ia928cc43305f4c226358dabd74fafee9d340fcc5
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions