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::timed_mutex

Author

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

                                                    libstdc++                             std::timed_mutex(3cxx)

Detailed Description

       The standard timed mutex type.

       A non-recursive mutex that supports a timeout when trying to acquire the lock.

       Since
           C++11

Name

       std::timed_mutex

Synopsis

       #include <mutex>

       Inherits __mutex_base, and __timed_mutex_impl< timed_mutex >.

   PublicTypestypedef__native_type * native_handle_typePublicMemberFunctionstimed_mutex (const timed_mutex &)=deletevoidlock ()
       native_handle_typenative_handle () noexcept
       timed_mutex & operator= (const timed_mutex &)=delete
       bool try_lock () noexcept
       template<class _Rep , class_Period > bool try_lock_for (const chrono::duration< _Rep, _Period >
           &__rtime)
       template<class_Clock , class_Duration > bool try_lock_until (const chrono::time_point< _Clock,
           _Duration > &__atime)
       voidunlock ()

   Friendsclass__timed_mutex_impl<timed_mutex>

See Also