Lines Matching full:unlock
32 /// is owned, that is, between calls to [`lock`] and [`unlock`].
37 /// [`unlock`]: Backend::unlock
43 /// The state required to be kept between [`lock`] and [`unlock`].
46 /// [`unlock`]: Backend::unlock
81 unsafe fn unlock(ptr: *mut Self::State, guard_state: &Self::GuardState); in unlock() method
88 /// variant) that has been unlocked with [`Backend::unlock`] and will be relocked now.
189 /// Allows mutual exclusion primitives that implement the [`Backend`] trait to automatically unlock
204 // SAFETY: The caller owns the lock, so it is safe to unlock it. in do_unlocked()
205 unsafe { B::unlock(self.lock.state.get(), &self.state) }; in do_unlocked()
233 // SAFETY: The caller owns the lock, so it is safe to unlock it. in drop()
234 unsafe { B::unlock(self.lock.state.get(), &self.state) }; in drop()