libstdc++
|
Public Types | |
typedef _Mutex | mutex_type |
Public Member Functions | |
lock_guard (mutex_type &__m) | |
lock_guard (mutex_type &__m, adopt_lock_t) noexcept | |
lock_guard (const lock_guard &) | |
lock_guard & | operator= (const lock_guard &) |
Tag used to prevent a scoped lock from blocking if a mutex is locked.
Tag used to make a scoped lock take ownership of a locked mutex. A simple scoped lock type.
A lock_guard controls mutex ownership within a scope, releasing ownership in the destructor.
Definition at line 156 of file std_mutex.h.