Lines Matching refs:guard

45         let mut guard: SpinLockGuard<InnerWaitQueue> = self.0.lock();  in sleep()  localVariable
47 guard.wait_list.push_back(current_pcb()); in sleep()
48 drop(guard); in sleep()
58 let mut guard: SpinLockGuard<InnerWaitQueue> = self.0.lock(); in sleep_with_func() localVariable
60 guard.wait_list.push_back(current_pcb()); in sleep_with_func()
62 drop(guard); in sleep_with_func()
83 let mut guard: SpinLockGuard<InnerWaitQueue> = self.0.lock(); in sleep_without_schedule() localVariable
85 guard.wait_list.push_back(current_pcb()); in sleep_without_schedule()
86 drop(guard); in sleep_without_schedule()
90 let mut guard: SpinLockGuard<InnerWaitQueue> = self.0.lock(); in sleep_uninterruptible() localVariable
92 guard.wait_list.push_back(current_pcb()); in sleep_uninterruptible()
93 drop(guard); in sleep_uninterruptible()
100 let mut guard: SpinLockGuard<InnerWaitQueue> = self.0.lock(); in sleep_unlock_spinlock() localVariable
102 guard.wait_list.push_back(current_pcb()); in sleep_unlock_spinlock()
104 drop(guard); in sleep_unlock_spinlock()
111 let mut guard: SpinLockGuard<InnerWaitQueue> = self.0.lock(); in sleep_unlock_mutex() localVariable
113 guard.wait_list.push_back(current_pcb()); in sleep_unlock_mutex()
115 drop(guard); in sleep_unlock_mutex()
122 let mut guard: SpinLockGuard<InnerWaitQueue> = self.0.lock(); in sleep_uninterruptible_unlock_spinlock() localVariable
124 guard.wait_list.push_back(current_pcb()); in sleep_uninterruptible_unlock_spinlock()
126 drop(guard); in sleep_uninterruptible_unlock_spinlock()
133 let mut guard: SpinLockGuard<InnerWaitQueue> = self.0.lock(); in sleep_uninterruptible_unlock_mutex() localVariable
135 guard.wait_list.push_back(current_pcb()); in sleep_uninterruptible_unlock_mutex()
137 drop(guard); in sleep_uninterruptible_unlock_mutex()
149 let mut guard: SpinLockGuard<InnerWaitQueue> = self.0.lock(); in wakeup() localVariable
151 if guard.wait_list.is_empty() { in wakeup()
156 if (guard.wait_list.front().unwrap().state & state) != 0 { in wakeup()
157 let to_wakeup = guard.wait_list.pop_front().unwrap(); in wakeup()
171 let mut guard: SpinLockGuard<InnerWaitQueue> = self.0.lock_irqsave(); in wakeup_all() localVariable
173 if guard.wait_list.is_empty() { in wakeup_all()
179 while let Some(to_wakeup) = guard.wait_list.pop_front() { in wakeup_all()
190 guard.wait_list.push_back(to_wakeup); in wakeup_all()