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

Name

Description

deadline

Absolute time by which the lock must be acquired.

Created with MrDocs