mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 08:53:29 +00:00
17 lines
410 B
Rust
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},
|
|
};
|