asterinas/framework/aster-frame/src/task/mod.rs

17 lines
410 B
Rust
Raw Normal View History

2024-01-03 03:22:36 +00:00
// SPDX-License-Identifier: MPL-2.0
2022-08-08 01:01:42 +00:00
//! Tasks are the unit of code execution.
2023-09-28 05:34:06 +00:00
mod priority;
2022-08-23 09:50:07 +00:00
mod processor;
2022-08-08 01:01:42 +00:00
mod scheduler;
2022-08-08 23:02:55 +00:00
#[allow(clippy::module_inception)]
2022-08-08 01:01:42 +00:00
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},
};