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::scoped_lock< _MutexTypes > - A scoped lock type for multiple lockable objects.

Author

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

                                                    libstdc++              std::scoped_lock<_MutexTypes>(3cxx)

Detailed Description

template<typename..._MutexTypes>
       class std::scoped_lock< _MutexTypes >"A scoped lock type for multiple lockable objects.

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

       Since
           C++17

Name

       std::scoped_lock< _MutexTypes > - A scoped lock type for multiple lockable objects.

Synopsis

       #include <mutex>

   PublicMemberFunctionsscoped_lock (_MutexTypes &... __m)
       scoped_lock (adopt_lock_t, _MutexTypes &... __m) noexcept
       scoped_lock (const scoped_lock &)=deletescoped_lock & operator= (const scoped_lock &)=delete

See Also