public member function
<mutex>
template <class Clock, class Duration>
bool try_lock_until (const chrono::time_point<Clock,Duration>& abs_time);
Try to lock mutex until time point
Parameters
abs_time
A point in time at which the thread will stop blocking, renouncing to acquire a lock.
time_point is an object that represents a specific absolute time.
Return value
true
if the function succeeds in locking the managed timed mutex object.
false
otherwise.
Data races
The unique_lock object is accessed/modified.
The managed timed mutex object is accessed/modified as an atomic operation (causing no data races).
Exception safety
Basic guarantee: if an exception is thrown by this member function, the unique_lock object is left in a valid state.
If the call fails, a system_error exception is thrown:
An exception is also thrown if the call to try_lock_until on the managed timed mutex object fails, and on any other condition reported with such mechanism by the library implementation.