An annotated version of std::mutex for Clang Thread Safety Analysis.
Declared in <util/stdmutex.h>
class [[capability]] StdMutex
: public std::mutex
Should only be used when the sync.h Mutex/LOCK primitives are not usable.
| Name | Description |
|---|---|
std::mutex |
| Name | Description |
|---|---|
Guard | An annotated version of std::lock_guard for StdMutex. |
| Name |
|---|
native_handle_type |
| Name | Description |
|---|---|
operator= [deleted] | |
lock | |
native_handle | |
try_lock | |
unlock | |
operator! | Expose the mutex as a negative capability for Clang Thread Safety Analysis. |
| Name | Description |
|---|---|
CheckNotHeld | Assert (for the analyzer) that a mutex is not currently held and return it. |