---
name: "std::shared_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::shared_timed_mutex"
---

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

The standard shared timed mutex type.

## NAME

std::shared\_timed\_mutex - The standard shared timed mutex type.

## SYNOPSIS

\#include \<shared\_mutex\>

### Public Member Functions

**shared\_timed\_mutex** (const shared\_timed\_mutex &)=delete\
 void **lock** ()\
 void **lock\_shared** ()\
 shared\_timed\_mutex & **operator=** (const shared\_timed\_mutex &)=delete\
 bool **try\_lock** ()\
 template\<typename \_Rep, typename \_Period\> bool **try\_lock\_for** (const **chrono::duration**\< \_Rep, \_Period \> &\_\_rtime)\
 bool **try\_lock\_shared** ()\
 template\<typename \_Rep, typename \_Period\> bool **try\_lock\_shared\_for** (const **chrono::duration**\< \_Rep, \_Period \> &\_\_rtime)\
 template\<typename \_Clock, typename \_Duration\> bool **try\_lock\_shared\_until** (const **chrono::time\_point**\< \_Clock, \_Duration \> &\_\_atime)\
 template\<typename \_Duration\> bool **try\_lock\_shared\_until** (const **chrono::time\_point**\< **chrono::steady\_clock**, \_Duration \> &\_\_atime)\
 template\<typename \_Duration\> bool **try\_lock\_shared\_until** (const **chrono::time\_point**\< **chrono::system\_clock**, \_Duration \> &\_\_atime)\
 template\<typename \_Clock, typename \_Duration\> bool **try\_lock\_until** (const **chrono::time\_point**\< \_Clock, \_Duration \> &\_\_atime)\
 template\<typename \_Duration\> bool **try\_lock\_until** (const **chrono::time\_point**\< **chrono::steady\_clock**, \_Duration \> &\_\_atime)\
 template\<typename \_Duration\> bool **try\_lock\_until** (const **chrono::time\_point**\< **chrono::system\_clock**, \_Duration \> &\_\_atime)\
 void **unlock** ()\
 void **unlock\_shared** ()\

## Detailed Description

The standard shared timed mutex type.

## Author

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