Template mixin that adds ‐Wthread‐safety locking annotations and lock order checking to a subset of the mutex API.
Synopsis
Declared in <sync.h>
template<typename PARENT>
class [[capability]] AnnotatedMixin
: public PARENT
Base Classes
Name |
Description |
|
Type Aliases
Name |
Description |
Unique‐lock type for the wrapped mutex. |
Member Functions
Name |
Description |
|
Destroy the mixin and drop its lock‐order bookkeeping. |
Lock the underlying mutex. |
|
Try to lock the underlying mutex without blocking. |
|
Unlock the underlying mutex. |
|
For negative capabilities in the Clang Thread Safety Analysis. A negative requirement uses the EXCLUSIVE_LOCKS_REQUIRED attribute, in conjunction with the ! operator, to indicate that a mutex should not be held. |
Created with MrDocs