cpp/thread/unique lock/try lock until

Tries to lock (i.e., takes ownership of) the associated mutex. Blocks until specified has been reached or the lock is acquired, whichever comes first. On successful lock acquisition returns, otherwise returns. May block for longer than until has been reached.

Effectively calls

std is thrown if there is no associated mutex or if the mutex is already locked by the same thread.

must meet the requirements.

Return value
if the ownership of the mutex has been acquired successfully, otherwise.

Exceptions

 * Any exceptions thrown by


 * If there is no associated mutex, std with an error code of std


 * If the mutex is already locked, std with an error code of std