In this description, m denotes an object of a mutex type,
rel_time denotes an object of an
instantiation of duration, and abs_time denotes an
object of an
instantiation of time_point.
Effects: The function attempts to obtain ownership of the mutex within the
relative timeout ([thread.req.timing])
specified by rel_time.
If the time specified by rel_time is less than or
equal to rel_time.zero(), the function attempts to obtain ownership without blocking (as if by calling
try_lock()).
The function returns within the timeout specified by
rel_time only if it has obtained ownership of the mutex object.
As
with try_lock(), there is no guarantee that ownership will be obtained if the
lock is available, but implementations are expected to make a strong effort to do so.
As with try_lock(), there is no guarantee that ownership will
be obtained if the lock is available, but implementations are expected to make a
strong effort to do so.