cpp/thread/shared lock/try lock until

Tries to lock the associated mutex in shared mode. 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.

must meet the requirements. The behavior is undefined if does not 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.