pub struct WaitQueue<K: Kernel> {
pub(super) queue: ForeignList<Thread<K>, ThreadListAdapter<K>>,
}Fields§
§queue: ForeignList<Thread<K>, ThreadListAdapter<K>>Implementations§
Source§impl<K: Kernel> WaitQueue<K>
impl<K: Kernel> WaitQueue<K>
Sourcefn pop_head_to_wake(&mut self) -> Option<ForeignBox<Thread<K>>>
fn pop_head_to_wake(&mut self) -> Option<ForeignBox<Thread<K>>>
Removes the head of the wait queue and marks it ready, without scheduling it.
Sourcepub(super) fn dequeue_one(&mut self, list: &mut WakeList<K>) -> WakeResult
pub(super) fn dequeue_one(&mut self, list: &mut WakeList<K>) -> WakeResult
Dequeues the head of the wait queue into list without making it runnable.
Sourcepub(super) fn dequeue_all(&mut self, list: &mut WakeList<K>) -> WakeResult
pub(super) fn dequeue_all(&mut self, list: &mut WakeList<K>) -> WakeResult
Dequeues all threads from the wait queue into list without making them runnable.