member function template
std::shared_lock::try_lock_for
- Header
<shared_mutex>- Scope
std::shared_lock- cppreference
- std::shared_lock::try_lock_for
Synopsis
template<class Rep, class Period>
[[nodiscard]] bool try_lock_for(const chrono::duration<Rep, Period>& rel_time);