diff options
author | Siarhei Vishniakou <svv@google.com> | 2017-07-12 13:36:51 -0700 |
---|---|---|
committer | Siarhei Vishniakou <svv@google.com> | 2017-07-21 13:25:42 -0700 |
commit | 4e5b69134bbeab28bdfd18e1cc0cc88df302575d (patch) | |
tree | a5e8971f899d8f41ea958f26f885e610be6095d9 /libcutils/socket_local_server_unix.cpp | |
parent | f42d02830de827096150fea42e99c55fdb2b7df7 (diff) |
Add thread safety analysis annotations.
Enable thread safety analysis annotations for clang.
See https://clang.llvm.org/docs/ThreadSafetyAnalysis.html
for instructions on using these in the source code.
Bug: 28094863
Test: annotated
frameworks/native/services/inputflinger/InputDispatcher.cpp
and enabled '-Werror' and '-Wthread-safety' clang
compiler flags in Android.bp for inputflinger.
Observed compiler errors when accessing
instance attributes without holding a lock. Also added
a compile test Mutex_test.cpp, which can be build using
m libutils_tests and run using
/data/nativetest64/libutils_tests/libutils_tests
Change-Id: I24ce111241cc339901bc45dda8b446df5299af4a
Diffstat (limited to 'libcutils/socket_local_server_unix.cpp')
0 files changed, 0 insertions, 0 deletions