logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

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

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

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

Name

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

Synopsis

       #include <mutex>

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

See Also