Searched refs:try_lock (Results 1 – 8 of 8) sorted by relevance
72 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState>; in try_lock() method185 pub fn try_lock(&self) -> Option<Guard<'_, T, B>> { in try_lock() method188 unsafe { B::try_lock(self.state.get()).map(|state| Guard::new(self, state)) } in try_lock()
87 pub fn try_lock(&'static self) -> Option<GlobalGuard<B>> { in try_lock() method89 inner: self.inner.try_lock()?, in try_lock()
122 pub fn try_lock(&self) -> Option<Guard<'_, T>> { in try_lock() method
390 bool try_lock; in xfs_lock_inodes() local416 try_lock = false; in xfs_lock_inodes()428 if (!try_lock) { in xfs_lock_inodes()429 for (j = (i - 1); j >= 0 && !try_lock; j--) { in xfs_lock_inodes()432 try_lock = true; in xfs_lock_inodes()442 if (!try_lock) { in xfs_lock_inodes()
571 if (rwc && rwc->try_lock) { in folio_lock_anon_vma_read()956 .try_lock = true, in folio_referenced()2806 if (rwc->try_lock) { in rmap_walk_anon_lock()2909 if (rwc->try_lock) { in __rmap_walk_file()
3177 if (rwc->try_lock) { in rmap_walk_ksm()
1023 bool try_lock; member
33 Diverse implementazioni permettono di usare try_lock() anche in altri contesti,