pub struct TASK_MANAGER {
    __private_field: (),
}
Expand description

Global variable: TASK_MANAGER

Fields

__private_field: ()

Methods from Deref<Target = TaskManager>

Run the first task in task list.

Generally, the first task in task list is an idle task (we call it zero process later). But in ch3, we load apps statically, so the first task is a real app.

Change the status of current Running task into Ready.

Change the status of current Running task into Exited.

Find next task to run and return task id.

In this case, we only return the first Ready task in task list.

Switch current Running task to the task we have found, or there is no Ready task and we can exit with all applications completed

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.