Home
last modified time | relevance | path

Searched refs:try_lock (Results 1 – 5 of 5) sorted by relevance

/rust/kernel/sync/
A Dlock.rs72 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState>; in try_lock() method
180 pub fn try_lock(&self) -> Option<Guard<'_, T, B>> { in try_lock() method
183 unsafe { B::try_lock(self.state.get()).map(|state| Guard::new(self, state)) } in try_lock()
/rust/kernel/sync/lock/
A Dmutex.rs127 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { in try_lock() method
A Dspinlock.rs126 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { in try_lock() method
A Dglobal.rs87 pub fn try_lock(&'static self) -> Option<GlobalGuard<B>> { in try_lock() method
89 inner: self.inner.try_lock()?, in try_lock()
/rust/kernel/
A Dxarray.rs122 pub fn try_lock(&self) -> Option<Guard<'_, T>> { in try_lock() method

Completed in 5 milliseconds