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

Author

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

                                                    libstdc++                                   std::mutex(3cxx)

Detailed Description

       The standard mutex type.

       A simple, non-recursive, non-timed mutex.

       Do not call lock() and unlock() directly, use a scoped lock type such as std::unique_lock,
       std::lock_guard, or (since C++17) std::scoped_lock.

       Since
           C++11

Name

       std::mutex

Synopsis

       #include <mutex>

       Inherits __mutex_base.

   PublicTypestypedef__native_type * native_handle_typePublicMemberFunctionsmutex (const mutex &)=deletevoidlock ()
       native_handle_typenative_handle () noexcept
       mutex & operator= (const mutex &)=delete
       bool try_lock () noexcept
       voidunlock ()

See Also