class
<mutex>

std::timed_mutex

class 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 typedescription
native_handle_typeType returned by native_handle (only defined if library implementation supports it)

Member functions