Skip to content

Commit 31b58c9

Browse files
committed
Error fix from enabling Clang thread-safety checks
Parent bug: b/353324127. Enabling `thread-safety-reference-return` to allow developers to utilize Clang thread safety guardrails (GUARDED_BY, REQUIRES, EXCLUDES). Added NO_THREAD_SAFETY_ANALYSIS annotations to violating functions. If this is not desired, please respond with concerns or preferred fix. Bug: 354740314 Test: m libsurfaceflinger_unittest Change-Id: I590ab37c7abe727ab827a99d2917dd15b534e1cf
1 parent 33a0c3c commit 31b58c9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

services/surfaceflinger/tests/unittests/FrameTimelineTest.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ class FrameTimelineTest : public testing::Test {
158158
a.presentTime == b.presentTime;
159159
}
160160

161+
NO_THREAD_SAFETY_ANALYSIS
161162
const std::map<int64_t, TimelineItem>& getPredictions() const {
162163
return mTokenManager->mPredictions;
163164
}

0 commit comments

Comments
 (0)