[Sanitizer] Add generic ThreadRegistry class for sanitizer runtimes. This class holds...
authorAlexey Samsonov <samsonov@google.com>
Thu, 14 Mar 2013 13:54:30 +0000 (13:54 +0000)
committerAlexey Samsonov <samsonov@google.com>
Thu, 14 Mar 2013 13:54:30 +0000 (13:54 +0000)
commit1cb684381a8ff13b8c4973a93bd78e39e2472ddf
tree123dd6b81be330ed0fe28726b70b75fd42198d91
parent40aacf48726c5a7998e5c0ba2eeb7f1b8dc110be
[Sanitizer] Add generic ThreadRegistry class for sanitizer runtimes. This class holds basic thread bookkeeping logic and allows specific sanitizer runtimes to create thread contexts and mark threads as created/running/joined etc. The class is based on the way we currently store thread contexts in TSan.

llvm-svn: 177074
compiler-rt/lib/sanitizer_common/CMakeLists.txt
compiler-rt/lib/sanitizer_common/sanitizer_thread_registry.cc [new file with mode: 0644]
compiler-rt/lib/sanitizer_common/sanitizer_thread_registry.h [new file with mode: 0644]
compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt
compiler-rt/lib/sanitizer_common/tests/sanitizer_thread_registry_test.cc [new file with mode: 0644]