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;
13mod mutex;
14mod spin;
15
16#[cfg(not(feature = "lockdep"))]
17/// No-op trace switch for builds without lockdep.
18pub const fn set_lockdep_trace_enabled(_enabled: bool) {}
19#[cfg(not(feature = "lockdep"))]
20/// No-op trace dump for builds without lockdep.
21pub const fn dump_lockdep_trace() {}
22pub use self::api::*;