]> granicus.if.org Git - clang/commit
Thread Safety Analysis: support adopting of locks, as implemented in
authorDeLesley Hutchins <delesley@google.com>
Wed, 4 Feb 2015 21:16:17 +0000 (21:16 +0000)
committerDeLesley Hutchins <delesley@google.com>
Wed, 4 Feb 2015 21:16:17 +0000 (21:16 +0000)
commit2f7d29e066172c72fc1d1b4b41cf7b6b1ff84cb9
treec82e56b1c4e41dd8bc4911ec9e2062dc1ce7b3fa
parent327f50a40af5122ccfae4dfb41cadd6e632720ff
Thread Safety Analysis: support adopting of locks, as implemented in
std::lock_guard.  If EXCLUSIVE_LOCKS_REQUIRED is placed on the constructor of
a SCOPED_LOCKABLE class, then that constructor is assumed to adopt the lock;
e.g. the lock must be held on construction, and will be released on destruction.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228194 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ThreadSafety.cpp
test/SemaCXX/warn-thread-safety-analysis.cpp