trylock
CcAutoTryLock(CcOsLock& lock):m_lock(lock) { m_locked = m_lock.trylock(); }
rangelock_cheat_lock(struct rangelock *lock, int locktype, bool trylock,
if (trylock) {
if (trylock) {
if (trylock) {
bool trylock, bool inserted)
if (trylock) {
rl_r_validate(struct rangelock *lock, struct rl_q_entry *e, bool trylock,
res = rl_conflict(lock, cur, e, trylock, true);
bool trylock, struct rl_q_entry **free)
res = rl_conflict(lock, cur, e, trylock, true);
rl_insert(struct rangelock *lock, struct rl_q_entry *e, bool trylock,
res = rl_conflict(lock, cur, e, trylock, false);
rl_r_validate(lock, e, trylock, free) :
rl_w_validate(lock, e, trylock, free));
rangelock_lock_int(struct rangelock *lock, bool trylock, vm_ooffset_t start,
if (rangelock_cheat_lock(lock, locktype, trylock, &cookie))
res = rl_insert(lock, e, trylock, &free);
MPASS(trylock);
_rm_rlock_hard(struct rmlock *rm, struct rm_priotracker *tracker, int trylock)
if (trylock) {
_rm_rlock(struct rmlock *rm, struct rm_priotracker *tracker, int trylock)
return _rm_rlock_hard(rm, tracker, trylock);
int trylock, const char *file, int line)
if (!(rm->lock_object.lo_flags & LO_RECURSABLE) && !trylock) {
if (!trylock) {
if (_rm_rlock(rm, tracker, trylock)) {
if (trylock)
} else if (trylock)
int trylock, const char *file, int line)
return _rm_rlock(rm, tracker, trylock);
int trylock, const char *file, int line);
int trylock);