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#![feature(allocator_api)]
8
9extern crate alloc;
10extern crate self as ax_task;
11
12#[cfg(any(test, all(feature = "host-test", not(target_os = "none"))))]
13extern crate std;
14
15pub mod executor;
16
17pub mod runtime;
18
19pub mod sync;
20
21pub mod thread;
22
23pub mod diagnostics;
24pub mod sched;
25pub mod time;