commit | a15e8c3a182f38bb1f64a8ba0f615ab422a025e6 | [log] [tgz] |
---|---|---|
author | Eric Fiselier <eric@efcs.ca> | Wed Mar 16 02:30:06 2016 +0000 |
committer | Eric Fiselier <eric@efcs.ca> | Wed Mar 16 02:30:06 2016 +0000 |
tree | 03537491d1cdcf0d8d7206544bb757c91750153f | |
parent | 36146819955b154dbcaaa3443d615b2620e8fec7 [diff] |
Add clang thread safety annotations to mutex and lock_guard. Patch by jamesr@google.com. This adds clang thread safety annotations to std::mutex and std::lock_guard so code using these types can use these types directly instead of having to wrap the types to provide annotations. These checks when enabled by -Wthread-safety provide simple but useful static checking to detect potential race conditions. See http://clang.llvm.org/docs/ThreadSafetyAnalysis.html for details. This patch was reviewed in http://reviews.llvm.org/D14731. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@263611 91177308-0d34-0410-b5e6-96231b3b80d8