Files
asterinas/framework/aster-frame/src/task/mod.rs
2024-02-26 10:03:45 +08:00

17 lines
410 B
Rust

// SPDX-License-Identifier: MPL-2.0
//! Tasks are the unit of code execution.
mod priority;
mod processor;
mod scheduler;
#[allow(clippy::module_inception)]
mod task;
pub use self::{
priority::Priority,
processor::{current_task, disable_preempt, preempt, schedule, DisablePreemptGuard},
scheduler::{add_task, set_scheduler, Scheduler},
task::{Task, TaskAdapter, TaskOptions, TaskStatus},
};