diff options
Diffstat (limited to 'docs/ThreadSafetyAnalysis.rst')
-rw-r--r-- | docs/ThreadSafetyAnalysis.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/ThreadSafetyAnalysis.rst b/docs/ThreadSafetyAnalysis.rst index 0a1b804..19ec235 100644 --- a/docs/ThreadSafetyAnalysis.rst +++ b/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; } }; |