Skip to main content

ax_task/sync/
mod.rs

1//! Native ArceOS synchronization implementation.
2//!
3//! This module owns the lock algorithms and their execution-context rules.
4//! [`ax_runtime`](https://docs.rs/ax-runtime) re-exports the stable API for OS
5//! consumers and adapts it to the OS-independent `ax-sync` bridge.
6
7pub mod api;
8#[doc(hidden)]
9pub mod bridge;
10mod context;
11#[cfg(feature = "lockdep")]
12mod lockdep;
13#[cfg(feature = "multitask")]
14mod mutex;
15mod spin;
16
17#[cfg(not(feature = "lockdep"))]
18/// No-op trace switch for builds without lockdep.
19pub const fn set_lockdep_trace_enabled(_enabled: bool) {}
20#[cfg(not(feature = "lockdep"))]
21/// No-op trace dump for builds without lockdep.
22pub const fn dump_lockdep_trace() {}
23pub use self::api::*;