---
name: "std::recursive_timed_mutex"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/std::recursive_timed_mutex"
---

# std::recursive\_timed\_mutex(3)

## NAME

std::recursive\_timed\_mutex

## SYNOPSIS

\#include \<mutex\>

### Public Types

typedef \_\_native\_type \* **native\_handle\_type**\

### Public Member Functions

**recursive\_timed\_mutex** (const recursive\_timed\_mutex &)=delete\
 void **lock** ()\
 native\_handle\_type **native\_handle** () noexcept\
 recursive\_timed\_mutex & **operator=** (const recursive\_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** ()\

### Friends

class **\_\_timed\_mutex\_impl\< recursive\_timed\_mutex \>**\

## Detailed Description

The standard recursive timed mutex type.

A recursive mutex that supports a timeout when trying to acquire the lock. 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

## Author

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