A RetroSearch Logo

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

Search Query:

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

class

<mutex>

std::timed_mutex

Timed mutex class

A timed mutex is a time lockable object that is designed to signal when critical sections of code need exclusive access, just like a regular mutex, but additionally supporting timed try-lock requests.

As such, a timed_mutex has two additional members: try_lock_for and try_lock_until.

It is guaranteed to be a standard-layout class.



Member types member type description native_handle_type Type returned by native_handle (only defined if library implementation supports it)
Member functions
(constructor)
Construct timed_mutex (public member function)
lock
Lock timed mutex (public member function)
try_lock
Lock timed mutex if not locked (public member function)
try_lock_for
Try to lock for time span (public member function)
try_lock_until
Try to lock until time point (public member function)
unlock
Unlock timed mutex (public member function)
native_handle
Get native handle (public member function)

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