summaryrefslogtreecommitdiff
path: root/libs/ultrahdr/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Josh Gao <jmgao@fb.com> 2022-09-08 16:19:29 -0700
committer Ying Wei <whisperwing@google.com> 2023-03-30 18:01:58 +0000
commit194ff39de17ef4596b2b6ce1520516d7cc10fde6 (patch)
treec4b412302c8bb831c1d13b95b1a4fa03e72667cb /libs/ultrahdr/jpegencoderhelper.cpp
parenta6e9dd2cb4da7f91f2379b44d3320cdb0f472f7c (diff)
SurfaceFlinger: add more thread-safety annotations.
As part of debugging a crash in SurfaceFlinger, we became suspicious of markLayerPendingRemovalLocked because it wasn't annotated with thread safety annotations. This ended up being a red herring, because mStateLock is held on all paths into that function. Add some helpers to MutexUtils.h to require/assert mutexes, and use them to sprinkle some thread safety annotations to make things more clear. Cherry-picked from aosp/2212955 Bug: 271644537 Test: m surfaceflinger Change-Id: Ib48433765bb6ffcb351ec10cd5bc89e254b48545
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions