Lines Matching full:pub
13 pub mod mutex;
14 pub mod spinlock;
31 pub unsafe trait Backend {
85 pub struct Lock<T: ?Sized, B: Backend> {
97 pub(crate) data: UnsafeCell<T>,
109 pub fn new(t: T, name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new()
124 pub fn lock(&self) -> Guard<'_, T, B> { in lock()
139 pub struct Guard<'a, T: ?Sized, B: Backend> {
140 pub(crate) lock: &'a Lock<T, B>,
141 pub(crate) state: B::GuardState,
149 pub(crate) fn do_unlocked<U>(&mut self, cb: impl FnOnce() -> U) -> U { in do_unlocked()
190 pub(crate) unsafe fn new(lock: &'a Lock<T, B>, state: B::GuardState) -> Self { in new()