From 8afcd0a71ad45a76600fb655e15568b284058fce Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Fri, 22 May 2015 13:36:48 +0000 Subject: Updating the documentation to include an operator! for negative capability support. llvm-svn: 238020 --- clang/docs/ThreadSafetyAnalysis.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/docs/ThreadSafetyAnalysis.rst') diff --git a/clang/docs/ThreadSafetyAnalysis.rst b/clang/docs/ThreadSafetyAnalysis.rst index 0a1b8049e46..19ec2352ff2 100644 --- a/clang/docs/ThreadSafetyAnalysis.rst +++ b/clang/docs/ThreadSafetyAnalysis.rst @@ -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; } }; -- cgit v1.2.3