Expand description
The executor module provides an executor that schedules and runs both the kernel threads and
the user threads.
Re-exports
pub use context::TrapContext;pub use future::spawn_thread;pub use future::yield_now;pub use future::ControlFlow;
Modules
- context 🔒The
contextmodule provides aTrapContextstruct that save and restore the context of a thread when an exception or interrupt occurs. - future 🔒
Structs
Statics
- LAZY 🔒
Functions
- Initializes the
stvecto the address of the_enter_kernel_spacefunction, which is located at the beginning of the TRAMPOLINE page. - Runs an event loop that executes all the tasks in the
TASK_QUEUEuntil there are no more task left. - spawn 🔒