libstdc++
std::lock_guard< _Mutex > Class Template Reference

List of all members.

Public Types

typedef _Mutex mutex_type

Public Member Functions

 lock_guard (mutex_type &__m)
 lock_guard (mutex_type &__m, adopt_lock_t)
 lock_guard (const lock_guard &)
lock_guardoperator= (const lock_guard &)

Detailed Description

template<typename _Mutex>
class std::lock_guard< _Mutex >

Tag used to prevent a scoped lock from acquiring ownership of a mutex.

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 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.

Definition at line 380 of file mutex.


The documentation for this class was generated from the following file: