1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Flash engine internals. [`FlashInner`] (`inner.rs`) is the SINGLE owner of
//! all engine state: the virtual clock ([`inner::Clock`]), the one
//! lock-protected scheduler core ([`inner::Core`], split into
//! [`inner::Registry`] + [`inner::Scheduler`] data) and the real-I/O pacer
//! (`pace::Pacer`, with its lazily-spawned eternal thread holding a strong
//! `Arc` to its OWN instance). The process engine is the lazily created
//! [`FLASH`] instance.
//!
//! Engine methods are instance-addressed (`&self` on `FlashInner`); nothing
//! below `FlashInner` reaches for the [`FLASH`] global, so local instances
//! behave identically. Everything outside `system/` consumes thin free-fn
//! forwards (each one `FLASH.method(...)`) re-exported below.
//!
//! The pure-scheduler tests in `flash/tests.rs` run on LOCAL instances
//! (`FlashInner::new_arc`, cfg(test)) — only the primitive-path tests (and
//! production) drive the global [`FLASH`] through the forwards.
/// Participant credit accounting (dedicated pacers, bridged waits, blocking
/// pacer bracket) split out of the scheduler — see `credit.rs`.
pub
/// Hang-dump rendering: the `fmt::Display for FlashInner` snapshot of counters,
/// quiescence pinners, parked waiters and engine primitives — see `dump.rs`.
pub
/// Per-task gate FSM ([`gate::TaskGate`]) — the waker-interception state
/// machine behind [`crate::flash::Participating`].
pub
/// The engine-state owner: `FlashInner` + `Clock` + `Core{Registry, Scheduler}`
/// + the `FLASH` process instance.
pub
/// Real-I/O pacing (the `real_io` count, pace anchor maintenance and the
/// per-instance pacer thread) — see `pace.rs` and [`crate::flash::RealIoScope`].
pub
/// Quiescence-driven virtual-clock mechanics: the advance rule plus the
/// `register_*`/`signal_*`/park surface, as `FlashInner` methods. Consumers
/// are the platform wait primitives (`thread::park_timeout`, `sync::Condvar`,
/// async `FlashSleep`/`Notify`) plus the harness.
pub
/// Waiter wake handles ([`wake::Token`] / [`wake::Wake`]).
pub
pub use ;
pub use ;
pub use ;