android_system_core/libutils/include/utils
Siarhei Vishniakou 4e5b69134b 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
2017-07-21 13:25:42 -07:00
..
AndroidThreads.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
Atomic.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
BitSet.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
BlobCache.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
ByteOrder.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
CallStack.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
Compat.h libziparchive: fix mac os breakage 2017-03-23 12:02:09 -07:00
Condition.h Clarify that Condition::wait() can spuriously wake up 2017-03-02 12:36:45 -08:00
Debug.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
Endian.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
Errors.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
FastStrcmp.h logd: ASAN cleansing 2017-03-27 13:32:57 -07:00
FileMap.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
Flattenable.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
Functor.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
JenkinsHash.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
KeyedVector.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
LinearTransform.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
List.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
Log.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
Looper.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
LruCache.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
misc.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
Mutex.h Add thread safety analysis annotations. 2017-07-21 13:25:42 -07:00
NativeHandle.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
Printer.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
ProcessCallStack.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
PropertyMap.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
RefBase.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
RWLock.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
Singleton.h Fix multiton issue 2017-02-23 18:22:46 -08:00
SortedVector.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
StopWatch.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
String8.h libutils: String\d+ make std_string private 2017-03-10 22:51:55 -08:00
String16.h libutils: String\d+ make std_string private 2017-03-10 22:51:55 -08:00
StrongPointer.h Add heuristic data race detection to sp<> 2017-03-17 17:47:28 -07:00
SystemClock.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
Thread.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
ThreadDefs.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
threads.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
Timers.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
Tokenizer.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
Trace.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
TypeHelpers.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
Unicode.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00
Vector.h Vector.h: remove unused import <new> 2017-02-17 13:19:08 -08:00
VectorImpl.h Exporting C++ headers from system/core 2017-01-24 22:51:36 +00:00