r238020 - Updating the documentation to include an operator! for negative capability support.

Aaron Ballman aaron at aaronballman.com
Fri May 22 06:36:48 PDT 2015


Author: aaronballman
Date: Fri May 22 08:36:48 2015
New Revision: 238020

URL: http://llvm.org/viewvc/llvm-project?rev=238020&view=rev
Log:
Updating the documentation to include an operator! for negative capability support.

Modified:
    cfe/trunk/docs/ThreadSafetyAnalysis.rst

Modified: cfe/trunk/docs/ThreadSafetyAnalysis.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/ThreadSafetyAnalysis.rst?rev=238020&r1=238019&r2=238020&view=diff
==============================================================================
--- cfe/trunk/docs/ThreadSafetyAnalysis.rst (original)
+++ cfe/trunk/docs/ThreadSafetyAnalysis.rst Fri May 22 08:36:48 2015
@@ -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; }
   };
 
 





More information about the cfe-commits mailing list