std::scoped_lock(3cxx)

std::scoped_lock3cxx

A scoped lock type for multiple lockable objects.

Usage

#include <mutex>

Public Member Functions

scoped_lock (_MutexTypes &... __m)
scoped_lock (adopt_lock_t, _MutexTypes &... __m) noexcept
scoped_lock (const scoped_lock &)=delete
scoped_lock & operator= (const scoped_lock &)=delete

Detailed Description

template<typename... _MutexTypes>

class std::scoped_lock< _MutexTypes >"A scoped lock type for multiple lockable objects.

A scoped_lock controls mutex ownership within a scope, releasing ownership in the destructor.

Since

C++17

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 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. Parsed by carta from the page's man source.