libstdc++
std::recursive_mutex Class Reference

#include <mutex>

Inherits __recursive_mutex_base.

Public Types

typedef __native_typenative_handle_type
 

Public Member Functions

 recursive_mutex (const recursive_mutex &)=delete
 
void lock ()
 
native_handle_type native_handle () noexcept
 
recursive_mutexoperator= (const recursive_mutex &)=delete
 
bool try_lock () noexcept
 
void unlock ()
 

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

Definition at line 111 of file mutex.

Member Typedef Documentation

◆ native_handle_type

Member Function Documentation

◆ lock()

void std::recursive_mutex::lock ( )
inline

Definition at line 123 of file mutex.

◆ native_handle()

native_handle_type std::recursive_mutex::native_handle ( )
inlinenoexcept

Definition at line 148 of file mutex.

◆ try_lock()

bool std::recursive_mutex::try_lock ( )
inlinenoexcept

Definition at line 134 of file mutex.

◆ unlock()

void std::recursive_mutex::unlock ( )
inline

Definition at line 141 of file mutex.


The documentation for this class was generated from the following file: