Lock Challenge Step 4
Syncmultiplethreadssharingaresource
|
A movable scoped lock type. More...
#include <LockGuard.h>
Public Types | |
typedef _Mutex | mutex_type |
Public Member Functions | |
LockGuard (mutex_type &__m) | |
LockGuard (mutex_type &__m, std::adopt_lock_t) | |
~LockGuard () | |
LockGuard (const LockGuard &)=delete | |
LockGuard & | operator= (const LockGuard &)=delete |
Private Attributes | |
mutex_type & | _M_device |
A movable scoped lock type.
A unique_lock controls mutex ownership within a scope. Ownership of the mutex can be delayed until after construction and can be transferred to another unique_lock by move construction or move assignment. If a mutex lock is owned when the destructor runs ownership will be released.< returns type determined by calling function
Definition at line 34 of file LockGuard.h.
typedef _Mutex chal::LockGuard< _Mutex >::mutex_type |
Definition at line 37 of file LockGuard.h.
|
inlineexplicit |
Definition at line 41 of file LockGuard.h.
|
inline |
Definition at line 51 of file LockGuard.h.
|
inline |
Definition at line 59 of file LockGuard.h.
|
delete |
|
delete |
|
private |
Definition at line 73 of file LockGuard.h.