std::timed_mutex - Man Page


#include <mutex>

Inherits __mutex_base, and __timed_mutex_impl< timed_mutex >.

Public Types

typedef __native_type * native_handle_type

Public Member Functions

timed_mutex (const timed_mutex &)=delete
void lock ()
native_handle_type native_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)
void unlock ()


class __timed_mutex_impl< timed_mutex >

Detailed Description

The standard timed mutex type.

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



Definition at line 235 of file mutex.

Member Typedef Documentation

typedef __native_type* std::timed_mutex::native_handle_type

Definition at line 239 of file mutex.

Member Function Documentation

void std::timed_mutex::lock () [inline]

Definition at line 248 of file mutex.

native_handle_type std::timed_mutex::native_handle () [inline], [noexcept]

Definition at line 285 of file mutex.

bool std::timed_mutex::try_lock () [inline], [noexcept]

Definition at line 259 of file mutex.

template<class _Rep , class _Period > bool std::timed_mutex::try_lock_for (const chrono::duration< _Rep, _Period > & __rtime) [inline]

Definition at line 268 of file mutex.

template<class _Clock , class _Duration > bool std::timed_mutex::try_lock_until (const chrono::time_point< _Clock, _Duration > & __atime) [inline]

Definition at line 274 of file mutex.

void std::timed_mutex::unlock () [inline]

Definition at line 278 of file mutex.


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


Thu Jan 19 2023 libstdc++