folly::SharedMutexImpl::eligible_for_lock_shared_elision

Checks whether a shared lock could succeed so that lock elision can be enabled.

Synopsis

Declared in <folly/SharedMutex.h>

bool
eligible_for_lock_shared_elision() const;

Return Value

true if shared locking looks eligible for elision.