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

Tries to acquire the managed mutex in shared mode without blocking.

Synopsis

Declared in <folly/SharedMutex.h>

bool
try_lock();

Return Value

true if the lock was acquired.