A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/mutex/adopt_lock_t/ below:

class

<mutex>

std::adopt_lock_t
struct adopt_lock_t {};

Type of adopt_lock

This is an empty class used as the type of adopt_lock.

Passing adopt_lock to the constructor of unique_lock or lock_guard, makes the object to not lock the mutex object, and assume instead that it is already locked by the current thread.



See also
adopt_lock
Adopt lock (object)
defer_lock_t
Type of defer_lock (class)
try_to_lock_t
Type of try_to_lock (class)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4