Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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