pub struct PerCpu {
pub arch: PerCpuArch,
pub preempt_count: AtomicU32,
/* private fields */
}Expand description
Per-CPU state.
Fields§
§arch: PerCpuArch§preempt_count: AtomicU32Preemption-disable depth counter.
When > 0, maybe_preempt() and yield_task() are no-ops on this CPU.
Implementations§
Auto Trait Implementations§
impl !Freeze for PerCpu
impl RefUnwindSafe for PerCpu
impl Send for PerCpu
impl Sync for PerCpu
impl Unpin for PerCpu
impl UnsafeUnpin for PerCpu
impl UnwindSafe for PerCpu
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
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