std::shared_timed_mutex::try_lock_until
Min standard notice:
Tries to lock the mutex. Blocks until specified timeout_time has been reached (timeout) or the lock is acquired (owns the mutex), whichever comes first. On successful lock acquisition returns true, otherwise returns false.
# Declarations
template< class Clock, class Duration >
bool try_lock_until( const std::chrono::time_point<Clock, Duration>& timeout_time );
(since C++14)
# Parameters
timeout_time: maximum time point to block until
# Return value
true if the lock was acquired successfully, otherwise false.
# Example
This section is incompleteReason: no example