Lines Matching full:guard
8 use super::{lock::Backend, lock::Guard, LockClassKey};
60 /// let mut guard = e.value.lock();
61 /// while *guard != v {
62 /// e.value_changed.wait(&mut guard);
119 guard: &mut Guard<'_, T, B>, in wait_internal()
133 let ret = guard.do_unlocked(|| unsafe { bindings::schedule_timeout(timeout_in_jiffies) }); in wait_internal()
143 /// Atomically releases the given lock (whose ownership is proven by the guard) and puts the
147 pub fn wait<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) { in wait()
148 self.wait_internal(TASK_UNINTERRUPTIBLE, guard, MAX_SCHEDULE_TIMEOUT); in wait()
158 pub fn wait_interruptible<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) -> bool { in wait_interruptible()
159 self.wait_internal(TASK_INTERRUPTIBLE, guard, MAX_SCHEDULE_TIMEOUT); in wait_interruptible()
165 /// Atomically releases the given lock (whose ownership is proven by the guard) and puts the
171 guard: &mut Guard<'_, T, B>, in wait_interruptible_timeout()
175 let res = self.wait_internal(TASK_INTERRUPTIBLE, guard, jiffies); in wait_interruptible_timeout()