Lines Matching defs:unlock
30 /// is owned, that is, between calls to [`lock`] and [`unlock`].
35 /// [`unlock`]: Backend::unlock
41 /// The state required to be kept between [`lock`] and [`unlock`].
44 /// [`unlock`]: Backend::unlock
79 unsafe fn unlock(ptr: *mut Self::State, guard_state: &Self::GuardState);
86 /// variant) that has been unlocked with [`Backend::unlock`] and will be relocked now.
197 /// Allows mutual exclusion primitives that implement the [`Backend`] trait to automatically unlock
242 // SAFETY: The caller owns the lock, so it is safe to unlock it.
243 unsafe { B::unlock(self.lock.state.get(), &self.state) };
302 // SAFETY: The caller owns the lock, so it is safe to unlock it.
303 unsafe { B::unlock(self.lock.state.get(), &self.state) };