summaryrefslogtreecommitdiff
path: root/libs/jpegrecoverymap/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-31 02:53:14 +0000
commit9445c92925e064d0ea16264a8751994e5cc59acc (patch)
tree6c0101944a80caeca269773b4592a657f8818293 /libs/jpegrecoverymap/jpegencoderhelper.cpp
parentb1e815fe34f76430e9ef0af3485185860bb2bdb4 (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. Test: m surfaceflinger Change-Id: Ib48433765bb6ffcb351ec10cd5bc89e254b48545 Merged-In: Ib48433765bb6ffcb351ec10cd5bc89e254b48545
Diffstat (limited to 'libs/jpegrecoverymap/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions