std::mutex.h(3cxx)

std::mutex.h3cxx

Usage

Classes

struct std::adopt_lock_t
Assume the calling thread has already obtained mutex ownership and manage it. struct std::defer_lock_t
Do not acquire ownership of the mutex. class std::lock_guard< _Mutex >
A simple scoped lock type. class std::mutex
struct std::try_to_lock_t
Try to acquire ownership of the mutex without blocking.

Namespaces

namespace std
ISO C++ entities toplevel namespace is std.

Variables

constexpr adopt_lock_t std::adopt_lock
Tag used to make a scoped lock take ownership of a locked mutex. constexpr defer_lock_t std::defer_lock
Tag used to prevent a scoped lock from acquiring ownership of a mutex. constexpr try_to_lock_t std::try_to_lock
Tag used to prevent a scoped lock from blocking if a mutex is locked.

Detailed Description

This is an internal header file, included by other library headers. Do not attempt to use it directly. Instead, include <mutex>.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

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

From libstdc++-12-doc 12.4.0-5 in Debian 13 (Trixie). Also shipped by libstdc++-13-doc, libstdc++-14-doc. Parsed by carta from the page's man source.