Scroll to navigation

std::lock_guard< _Mutex >(3cxx) std::lock_guard< _Mutex >(3cxx)

NAME

std::lock_guard< _Mutex > - 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.

Definition at line 223 of file mutex.

Member Typedef Documentation

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

Definition at line 226 of file mutex.

Constructor & Destructor Documentation

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

Definition at line 228 of file mutex.

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

Definition at line 231 of file mutex.

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

Definition at line 234 of file mutex.

Author

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

Sun Jan 8 2023 libstdc++