std::timed_mutex::try_lock_until

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++11)

# Parameters

# Return value

true if the lock was acquired successfully, otherwise false.

# Example

This section is incompleteReason: no example

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 2093C++11try_lock_until threw nothingthrows timeout-related exceptions

# See also