A RetroSearch Logo

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

Search Query:

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

class

<mutex>

std::try_to_lock_t
struct try_to_lock_t {};

Type of try_to_lock

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

Passing try_to_lock to unique_lock's constructor, makes it to attempt to lock the mutex object by calling its try_lock member, instead of lock.



See also
try_to_lock
Try to lock (object)
defer_lock_t
Type of defer_lock (class)
adopt_lock_t
Type of adopt_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