euv-core 0.47.0

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::*;

thread_local! {
    /// Thread-local reactive runtime ensuring lock-free single-threaded performance and test isolation.
    pub(crate) static REACTIVE_RUNTIME: RefCell<ReactiveRuntime> = RefCell::new(ReactiveRuntime::default());

    /// Fast-path flag mirroring whether the top of `observer_stack` is actively tracking dependencies.
    pub(crate) static TRACKING_ACTIVE: Cell<bool> = const { Cell::new(false) };

    /// Active nesting depth of shared `RefCell::try_borrow()` reads (`Signal::with_ref` / `Memo::with_ref`).
    pub(crate) static REF_BORROW_DEPTH: Cell<u32> = const { Cell::new(0) };

    /// Deferred dependency reads queued while inside nested shared `with_ref` borrows and flushed on exit.
    pub(crate) static PENDING_REF_TRACKS: RefCell<Vec<DependencyId>> = const { RefCell::new(Vec::new()) };

    /// Monotonic per-thread reactive runtime epoch incremented on every `reset_reactive_runtime` call.
    pub(crate) static RUNTIME_EPOCH: Cell<u64> = const { Cell::new(1) };
}