diff options
| author | 2024-08-27 18:53:41 +0000 | |
|---|---|---|
| committer | 2024-09-20 19:06:21 +0000 | |
| commit | ac05bcc6cece211f68fe359aeea5f0f390a2513c (patch) | |
| tree | 9054b40b42c9cdcbe5f8ef55502f5df1930fd4b2 /libs/gui/ConsumerBase.cpp | |
| parent | 1050b6cefa5564394fc052e6fc94248b164379c6 (diff) | |
Disable Clang thread-safety checks in surfaceflinger unit tests
Parent bug: b/353324127. Enabling `thread-safety-reference-return`
to allow developers to utilize Clang thread safety guardrails.
The surfaceflinger unittest suite currently does not untilize mutex
locks when calling required thread-safe variables.
Example error:
frameworks/native/services/surfaceflinger/tests/unittests/TestableScheduler.h:133:52
error: returning variable 'mAttachedChoreographers' by reference
requires holding mutex 'mChoreographerLock' exclusively
[-Wthread-safety-reference-return]
Added NO_THREAD_SAFETY_ANALYSIS annotations to violating functions.
Bug: 354740314
Test: make
Change-Id: I95793ab942207660ea8e49cfd50d089e956a7ada
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions