std::shared_timed_mutex::try_lock_shared_for

Tries to lock the mutex in shared mode. Blocks until specified timeout_duration has elapsed or the shared lock is acquired, whichever comes first. On successful lock acquisition returns true, otherwise returns false.

# Declarations

template< class Rep, class Period >
bool try_lock_shared_for( const std::chrono::duration<Rep,Period>& timeout_duration );

(since C++14)

# Parameters

# Return value

true if the lock was acquired successfully, otherwise false.

# Example

This section is incompleteReason: no example

# See also