[PATCH] D49355: Thread safety analysis: Allow lock upgrading and downgrading
Aaron Puchert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 15 14:35:03 PDT 2018
aaronpuchert created this revision.
aaronpuchert added reviewers: aaron.ballman, delesley.
Herald added a subscriber: cfe-commits.
We can now have methods that release a locked in shared mode and acquire
it in exclusive mode or the other way around. The fix was just to
release the locks before acquiring them.
Also added a few test cases for non-generic unlock methods and removed
an unnecessary const_cast.
Repository:
rC Clang
https://reviews.llvm.org/D49355
Files:
lib/Analysis/ThreadSafety.cpp
test/SemaCXX/warn-thread-safety-analysis.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49355.155599.patch
Type: text/x-patch
Size: 6435 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180715/fa156541/attachment-0001.bin>
More information about the cfe-commits
mailing list