Skip to main content

ax_task/
lib.rs

1//! OS-independent task scheduling primitives.
2//!
3//! The crate owns no global scheduler state. Operating systems create an explicit
4//! [`runtime::TaskSystem`] and one pinned [`runtime::cpu::CpuLocal`] object for every online CPU.
5
6#![no_std]
7
8extern crate alloc;
9extern crate self as ax_task;
10
11#[cfg(any(test, all(feature = "host-test", not(target_os = "none"))))]
12extern crate std;
13
14pub mod executor;
15
16pub mod runtime;
17
18pub mod sync;
19
20pub mod thread;
21
22pub mod diagnostics;
23pub mod sched;
24pub mod time;