---
name: "std::recursive_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_mutex"
---

# std::recursive\_mutex(3)

## NAME

std::recursive\_mutex

## SYNOPSIS

\#include \<mutex\>

### Public Types

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

### Public Member Functions

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

## Author

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