---
name: "std::recursive_mutex"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::recursive_mutex/3cxx"
---

# std::recursive\_mutex(3cxx)

## NAME

std::recursive\_mutex

## SYNOPSIS

`#include <mutex>`

Inherits \_\_recursive\_mutex\_base.

### 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.
