]> granicus.if.org Git - clang/commit
Thread safety analysis: Allow relockable scopes
authorAaron Puchert <aaronpuchert@alice-dsl.net>
Wed, 22 Aug 2018 22:14:53 +0000 (22:14 +0000)
committerAaron Puchert <aaronpuchert@alice-dsl.net>
Wed, 22 Aug 2018 22:14:53 +0000 (22:14 +0000)
commit4f97b44dc059c1520e81d11b1078498f67a27b0f
tree5dae6ac5266f31a200a5a0200324b6ab90a32e6c
parent2c4b8ea78f361d7e7554b669e5f5cc8b5d9ff077
Thread safety analysis: Allow relockable scopes

Summary:
It's already allowed to prematurely release a scoped lock, now we also
allow relocking it again, possibly even in another mode.

This is the second attempt, the first had been merged as r339456 and
reverted in r339558 because it caused a crash.

Reviewers: delesley, aaron.ballman

Reviewed By: delesley, aaron.ballman

Subscribers: hokein, cfe-commits

Differential Revision: https://reviews.llvm.org/D49885

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