std::lock_guard - Man Page

A simple scoped lock type.

Synopsis

#include <mutex>

Public Types

typedef _Mutex mutex_type

Public Member Functions

lock_guard (const lock_guard &)=delete
lock_guard (mutex_type &__m)
lock_guard (mutex_type &__m, adopt_lock_t) noexcept
lock_guard & operator= (const lock_guard &)=delete

Detailed Description

template<typename _Mutex>

class std::lock_guard< _Mutex >"A simple scoped lock type.

A lock_guard controls mutex ownership within a scope, releasing ownership in the destructor.

Since

C++11

Definition at line 243 of file std_mutex.h.

Member Typedef Documentation

template<typename _Mutex > typedef _Mutex std::lock_guard< _Mutex >::mutex_type

Definition at line 246 of file std_mutex.h.

Constructor & Destructor Documentation

template<typename _Mutex > std::lock_guard< _Mutex >::lock_guard (mutex_type & __m) [inline], [explicit]

Definition at line 248 of file std_mutex.h.

template<typename _Mutex > std::lock_guard< _Mutex >::lock_guard (mutex_type & __m, adopt_lock_t) [inline], [noexcept]

Definition at line 251 of file std_mutex.h.

template<typename _Mutex > std::lock_guard< _Mutex >::~lock_guard () [inline]

Definition at line 254 of file std_mutex.h.

Author

Generated automatically by Doxygen for libstdc++ from the source code.

Info

Sat Jan 28 2023 libstdc++