pub struct TaskControlBlock {
pub process: Weak<ProcessControlBlock>,
pub kstack: KernelStack,
inner: UPSafeCell<TaskControlBlockInner>,
}
Fields
process: Weak<ProcessControlBlock>
kstack: KernelStack
inner: UPSafeCell<TaskControlBlockInner>
Implementations
sourceimpl TaskControlBlock
impl TaskControlBlock
pub fn inner_exclusive_access(&self) -> RefMut<'_, TaskControlBlockInner>
pub fn get_user_token(&self) -> usize
Auto Trait Implementations
impl !RefUnwindSafe for TaskControlBlock
impl Send for TaskControlBlock
impl Sync for TaskControlBlock
impl Unpin for TaskControlBlock
impl !UnwindSafe for TaskControlBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more