An annotated version of std::mutex for Clang Thread Safety Analysis.
Synopsis
Declared in <util/stdmutex.h>
class [[capability]] StdMutex
: public std::mutex
Description
Should only be used when the sync.h Mutex/LOCK primitives are not usable.
Base Classes
Name |
Description |
|
Types
Name |
Description |
An annotated version of std::lock_guard for StdMutex. |
Type Aliases
Member Functions
Name |
Description |
|
|
Expose the mutex as a negative capability for Clang Thread Safety Analysis. |
Static Member Functions
Name |
Description |
Assert (for the analyzer) that a mutex is not currently held and return it. |
Created with MrDocs