
please wait
template <class Clock, class Duration> bool try_lock_until (const chrono::time_point<Clock,Duration>& abs_time);
true
before the call, or if the object currently manages no mutex object, the function throws a system_error exception.true
if the function succeeds in locking the managed timed mutex object.false
otherwise.exception type | error condition | description |
---|---|---|
system_error | errc::resource_deadlock_would_occur | The unique_lock object already owns a lock |
system_error | errc::operation_not_permitted | The unique_lock object currently manages no mutex object (because it was default-constructed, moved, or released) |