Export (0) Print
Expand All

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;

The template argument Mutex must name a mutex type.

Name

Description

lock_guard::mutex_type

Synonym for the template argument Mutex.

Name

Description

lock_guard::lock_guard Constructor

Constructs a lock_guard object.

lock_guard::~lock_guard Destructor

Unlocks the mutex that was passed to the constructor.

Header: mutex

Namespace: std

Show:
© 2014 Microsoft