std::lock_guard< _Mutex >(3) Library Functions Manual std::lock_guard< _Mutex >(3)

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

#include <mutex>


typedef _Mutex mutex_type


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

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

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

libstdc++