struct PerCpuClassRqSet {
real_time: RealTimeClassRq,
fair: FairClassRq,
idle: IdleClassRq,
}Fields§
§real_time: RealTimeClassRq§fair: FairClassRq§idle: IdleClassRqImplementations§
Source§impl PerCpuClassRqSet
impl PerCpuClassRqSet
Sourcefn enqueue(&mut self, class: SchedClassId, task: Arc<Task>)
fn enqueue(&mut self, class: SchedClassId, task: Arc<Task>)
Performs the enqueue operation.
Sourcefn len_by_class(&self, class: SchedClassId) -> usize
fn len_by_class(&self, class: SchedClassId) -> usize
Performs the len by class operation.
Sourcefn runnable_len(&self) -> usize
fn runnable_len(&self) -> usize
Performs the runnable len operation.
Sourcefn pick_next_by_class(&mut self, class: SchedClassId) -> Option<Arc<Task>>
fn pick_next_by_class(&mut self, class: SchedClassId) -> Option<Arc<Task>>
Performs the pick next by class operation.
Sourcefn pick_next(&mut self, table: &SchedClassTable) -> Option<Arc<Task>>
fn pick_next(&mut self, table: &SchedClassTable) -> Option<Arc<Task>>
Performs the pick next operation.
Sourcefn update_current(
&mut self,
rt: &CurrentRuntime,
task: &Task,
is_yield: bool,
table: &SchedClassTable,
) -> bool
fn update_current( &mut self, rt: &CurrentRuntime, task: &Task, is_yield: bool, table: &SchedClassTable, ) -> bool
Updates current.
Sourcefn steal_candidate(&mut self, table: &SchedClassTable) -> Option<Arc<Task>>
fn steal_candidate(&mut self, table: &SchedClassTable) -> Option<Arc<Task>>
Performs the steal candidate operation.
Auto Trait Implementations§
impl !RefUnwindSafe for PerCpuClassRqSet
impl !UnwindSafe for PerCpuClassRqSet
impl Freeze for PerCpuClassRqSet
impl Send for PerCpuClassRqSet
impl Sync for PerCpuClassRqSet
impl Unpin for PerCpuClassRqSet
impl UnsafeUnpin for PerCpuClassRqSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more