lock_guard Class
Represents a template that can be instantiated to create an object whose destructor unlocks a mutex.
template<class Mutex>
class lock_guard;
Remarks
The template argument Mutex must name a mutex type.
Members
Public Typedefs
Name |
Description |
---|---|
lock_guard::mutex_type |
Synonym for the template argument Mutex. |
Public Constructors
Name |
Description |
---|---|
Constructs a lock_guard object. |
|
Unlocks the mutex that was passed to the constructor. |
Requirements
Header: mutex
Namespace: std