std::shared_lock<folly::SharedMutexImpl<ReaderPriority, Tag_, Atom, Policy>>::try_lock_until

Tries to acquire the managed mutex in shared mode by a deadline.

Synopsis

Declared in <folly/SharedMutex.h>

template<
    typename Clock,
    typename Duration>
bool
try_lock_until(std::chrono::time_point<Clock, Duration> const& deadline);

Return Value

true if the lock was acquired before the deadline.

Parameters

NameDescription
deadlineAbsolute time by which the lock must be acquired.