]> granicus.if.org Git - clang/commitdiff
Updating the documentation to include an operator! for negative capability support.
authorAaron Ballman <aaron@aaronballman.com>
Fri, 22 May 2015 13:36:48 +0000 (13:36 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 22 May 2015 13:36:48 +0000 (13:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@238020 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ThreadSafetyAnalysis.rst

index 0a1b8049e4654f42122ebdb65ed5082cd8a9baa5..19ec2352ff2bc9b2da316ee38733d384ddf836c1 100644 (file)
@@ -857,6 +857,9 @@ implementation.
 
     // Assert that is mutex is currently held for read operations.
     void AssertReaderHeld() ASSERT_SHARED_CAPABILITY(this);
+    
+    // For negative capabilities.
+    const Mutex& operator!() const { return *this; }
   };