summaryrefslogtreecommitdiff
path: root/libs/ultrahdr/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Matt Buckley <mattbuckley@google.com> 2023-10-27 22:22:36 +0000
committer Matt Buckley <mattbuckley@google.com> 2023-12-05 21:37:21 +0000
commit547cc0c5c251261131556625d1f75f488c3825f8 (patch)
tree8fd26c852fdfa377ccd344d68a35560ef480d66a /libs/ultrahdr/jpegencoderhelper.cpp
parentb928c8ded92383befa87e1a4ad57181c39db4676 (diff)
Rewrite concurrency logic in SurfaceFlinger PowerAdvisor
This patch aims to make concurrency safer by making sure all checks to "hint session running" use mHintSession directly rather than a proxy variable, and lock it. This requires all access to "ensurePowerHintSessionRunning" to be locked, which requires refactoring some methods, but should make the class much safer. This patch also aims to ensure the session pointer is being directly checked for validity, rather than relying on PowerHAL to always pass valid sessions. Bug: 308030899 Test: atest libsurfaceflinger_unittest:PowerAdvisorTest Change-Id: I0ebe55ed3c62c57cfd6fb94280beff4b9e8fcc13
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions