A RetroSearch Logo

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

Search Query:

Showing content from https://cplusplus.com/try_to_lock below:

object

<mutex>

std::try_to_lock
constexpr try_to_lock_t try_to_lock {};

Try to lock

Value used as possible argument to unique_lock's constructor.

unique_lock objects constructed with try_to_lock attempt to lock the mutex object by calling its try_lock member instead of its lock member.

The value is a compile-time constant that carries no state, and is merely used to disambiguate between constructor signatures.

try_to_lock_t is an empty class.



See also
defer_lock
Defer lock (object)
adopt_lock
Adopt lock (object)

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