Searched refs:GuardState (Results 1 – 3 of 3) sorted by relevance
32 type GuardState; typedef52 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState; in lock() argument59 unsafe fn unlock(ptr: *mut Self::State, guard_state: &Self::GuardState); in unlock() argument67 unsafe fn relock(ptr: *mut Self::State, guard_state: &mut Self::GuardState) { in relock() argument135 pub(crate) state: B::GuardState,184 pub(crate) unsafe fn new(lock: &'a Lock<T, B>, state: B::GuardState) -> Self { in new()
96 type GuardState = (); typedef108 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState { in lock() argument114 unsafe fn unlock(ptr: *mut Self::State, _guard_state: &Self::GuardState) { in unlock() argument
95 type GuardState = (); typedef107 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState { in lock() argument113 unsafe fn unlock(ptr: *mut Self::State, _guard_state: &Self::GuardState) { in unlock() argument