euv-core 0.53.1

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
use super::*;

/// Asynchronous lifecycle state for `ENGINE_WORKER_POOL` (`0` = uninitialized, `1` = spawning, `2` = ready).
#[cfg(not(target_arch = "wasm32"))]
pub(crate) static ENGINE_POOL_STATE: AtomicUsize = AtomicUsize::new(ENGINE_POOL_UNINITIALIZED);

/// Active adaptive spin iteration budget mirrored lock-free across all `EngineWorkerPool` threads.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) static ENGINE_ACTIVE_SPIN_LIMIT: AtomicUsize =
    AtomicUsize::new(ENGINE_WORKER_SPIN_LIMIT_IDLE as usize);

/// Lazily initialized process-wide unified work-stealing worker pool shared by layout, paint, and software rasterization.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) static ENGINE_WORKER_POOL: OnceLock<EngineWorkerPool> = OnceLock::new();