Lines Matching refs:lock
65 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState; in lock() method
89 *guard_state = unsafe { Self::lock(ptr) }; in relock()
167 pub fn lock(&self) -> Guard<'_, T, B> { in lock() method
170 let state = unsafe { B::lock(self.state.get()) }; in lock()
194 pub(crate) lock: &'a Lock<T, B>,
230 self.lock in lock_ref()
235 unsafe { B::unlock(self.lock.state.get(), &self.state) }; in do_unlocked()
239 unsafe { B::relock(self.lock.state.get(), &mut self.state) }); in do_unlocked()
250 unsafe { &*self.lock.data.get() } in deref()
257 unsafe { &mut *self.lock.data.get() } in deref_mut()
264 unsafe { B::unlock(self.lock.state.get(), &self.state) }; in drop()
274 pub unsafe fn new(lock: &'a Lock<T, B>, state: B::GuardState) -> Self { in new()
276 unsafe { B::assert_is_held(lock.state.get()) }; in new()
279 lock, in new()