Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

std::recursive_mutex

Author

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

                                                    libstdc++                         std::recursive_mutex(3cxx)

Detailed Description

       The standard recursive mutex type.

       A recursive mutex can be locked more than once by the same thread. Other threads cannot lock the mutex
       until the owning thread unlocks it as many times as it was locked.

       Since
           C++11

Name

       std::recursive_mutex

Synopsis

       #include <mutex>

       Inherits __recursive_mutex_base.

   PublicTypestypedef__native_type * native_handle_typePublicMemberFunctionsrecursive_mutex (const recursive_mutex &)=deletevoidlock ()
       native_handle_typenative_handle () noexcept
       recursive_mutex & operator= (const recursive_mutex &)=delete
       bool try_lock () noexcept
       voidunlock ()

See Also