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

/// Lock-free flag indicating reactive or scene mutations require a new rendered frame.
pub(crate) static FRAME_NEEDED: AtomicBool = AtomicBool::new(false);

/// Lock-free platform frame-wakeup callback pointer registered via `register_frame_wakeup`.
pub(crate) static FRAME_WAKEUP_HOOK: AtomicPtr<()> = AtomicPtr::new(null_mut());

thread_local! {
    /// Active ambient `Context` managed automatically by `App::mount`, `with_context`, and `view!`.
    pub(crate) static ACTIVE_CONTEXT: RefCell<Option<Context>> = const { RefCell::new(None) };
    /// Nesting depth of active `SceneTree` borrows on the current thread.
    pub(crate) static SCENE_BORROW_DEPTH: Cell<u32> = const { Cell::new(0) };
    /// Flag set when `flush_effects` deferred flushing because a `SceneTree` borrow was active.
    pub(crate) static DEFERRED_EFFECT_FLUSH: Cell<bool> = const { Cell::new(false) };
}