Module os::task::manager

source · []

Structs

Functions

This function add a task to interruptible_queue, but won’t take it out from ready_queue. So you should make sure that the task won’t be presented in ready_queue. In common cases, a task will be drop from ready_queue when it is scheduled, and you can use take take_current_task() to acquire the ownership of current TCB.

This function will drop task from interruptible_queue and push it into ready_queue. The task will be scheduled if everything goes well.