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

# std::try\_to\_lock\_t(3cxx)

Try to acquire ownership of the mutex without blocking.

## NAME

std::try\_to\_lock\_t - Try to acquire ownership of the mutex without blocking.

## SYNOPSIS

`#include <mutex>`

## Detailed Description

Try to acquire ownership of the mutex without blocking.

## Author

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