pub struct WaitQueueLockGuard<'lock, 'sched, K: Kernel, T> {
inner: SchedLockGuard<'lock, 'sched, K, WaitQueueLockState<K, T>>,
}Fields§
§inner: SchedLockGuard<'lock, 'sched, K, WaitQueueLockState<K, T>>Implementations§
Source§impl<'lock, 'sched, K: Kernel, T> WaitQueueLockGuard<'lock, 'sched, K, T>
impl<'lock, 'sched, K: Kernel, T> WaitQueueLockGuard<'lock, 'sched, K, T>
pub fn sched(&self) -> &SpinLockGuard<'sched, K, SchedulerState<K>>
pub fn into_sched(self) -> SpinLockGuard<'sched, K, SchedulerState<K>>
pub fn sched_mut(&mut self) -> &mut SpinLockGuard<'sched, K, SchedulerState<K>>
pub fn operate_on_wait_queue<F, R>(self, f: F) -> (Self, R)where
F: FnOnce(SchedLockGuard<'lock, 'sched, K, WaitQueue<K>>) -> (SchedLockGuard<'lock, 'sched, K, WaitQueue<K>>, R),
pub fn wait_until( self, wait_type: WaitType, deadline: Instant<K::Clock>, ) -> (Self, Result<()>)
pub fn wait(self, wait_type: WaitType) -> (Self, Result<()>)
Sourcepub fn wake_list_and_reschedule(
self,
wake_list: WakeList<K>,
) -> SpinLockGuard<'sched, K, SchedulerState<K>>
pub fn wake_list_and_reschedule( self, wake_list: WakeList<K>, ) -> SpinLockGuard<'sched, K, SchedulerState<K>>
Wakes all threads in wake_list and reschedules if needed.
Sourcepub fn wake_one_and_reschedule(
self,
) -> SpinLockGuard<'sched, K, SchedulerState<K>>
pub fn wake_one_and_reschedule( self, ) -> SpinLockGuard<'sched, K, SchedulerState<K>>
Dequeues and wakes one waiter, rescheduling if needed.
Sourcepub fn wake_all_and_reschedule(
self,
) -> SpinLockGuard<'sched, K, SchedulerState<K>>
pub fn wake_all_and_reschedule( self, ) -> SpinLockGuard<'sched, K, SchedulerState<K>>
Dequeues and wakes all waiters, rescheduling if needed.
Sourcepub fn dequeue_one(&mut self, list: &mut WakeList<K>) -> WakeResult
pub fn dequeue_one(&mut self, list: &mut WakeList<K>) -> WakeResult
Dequeues the head of the wait queue into list without waking it.
Sourcepub fn dequeue_all(&mut self, list: &mut WakeList<K>) -> WakeResult
pub fn dequeue_all(&mut self, list: &mut WakeList<K>) -> WakeResult
Dequeues all threads from the wait queue into list without waking them.
Trait Implementations§
Source§impl<K: Kernel, T> Deref for WaitQueueLockGuard<'_, '_, K, T>
impl<K: Kernel, T> Deref for WaitQueueLockGuard<'_, '_, K, T>
Auto Trait Implementations§
impl<'lock, 'sched, K, T> !RefUnwindSafe for WaitQueueLockGuard<'lock, 'sched, K, T>
impl<'lock, 'sched, K, T> !UnwindSafe for WaitQueueLockGuard<'lock, 'sched, K, T>
impl<'lock, 'sched, K, T> Forget for WaitQueueLockGuard<'lock, 'sched, K, T>
impl<'lock, 'sched, K, T> Freeze for WaitQueueLockGuard<'lock, 'sched, K, T>where
SchedLockGuard<'lock, 'sched, K, WaitQueueLockState<K, T>>: Freeze,
impl<'lock, 'sched, K, T> Move for WaitQueueLockGuard<'lock, 'sched, K, T>
impl<'lock, 'sched, K, T> Send for WaitQueueLockGuard<'lock, 'sched, K, T>where
SchedLockGuard<'lock, 'sched, K, WaitQueueLockState<K, T>>: Send,
impl<'lock, 'sched, K, T> Sync for WaitQueueLockGuard<'lock, 'sched, K, T>where
SchedLockGuard<'lock, 'sched, K, WaitQueueLockState<K, T>>: Sync,
impl<'lock, 'sched, K, T> Unpin for WaitQueueLockGuard<'lock, 'sched, K, T>where
SchedLockGuard<'lock, 'sched, K, WaitQueueLockState<K, T>>: Unpin,
impl<'lock, 'sched, K, T> UnsafeUnpin for WaitQueueLockGuard<'lock, 'sched, K, T>where
SchedLockGuard<'lock, 'sched, K, WaitQueueLockState<K, T>>: UnsafeUnpin,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more