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

/// Monotonic hardware VSync tick counter incremented by macOS `CVDisplayLink` callbacks.
pub(crate) static MACOS_CV_DISPLAY_LINK_TICKS: AtomicU64 = AtomicU64::new(0);

/// Latest measured macOS `CVDisplayLink` display refresh rate stored as `f32::to_bits() as u64`.
pub(crate) static MACOS_CV_DISPLAY_LINK_HZ_BITS: AtomicU64 = AtomicU64::new(0);

/// Raw `NSView*` content view pointer of the primary macOS host window for embedded `WKWebView` overlays.
pub(crate) static MACOS_PRIMARY_CONTENT_VIEW: AtomicPtr<c_void> = AtomicPtr::new(null_mut());

/// Retained `WKWebView*` instance currently attached to `MACOS_PRIMARY_CONTENT_VIEW`, or null when closed.
pub(crate) static MACOS_ACTIVE_WEBVIEW: AtomicPtr<c_void> = AtomicPtr::new(null_mut());

/// Synchronized `CVDisplayLink` -> `CFRunLoopSource` wake bridge shared between CoreVideo and the main thread.
pub(crate) static MACOS_VSYNC_BRIDGE: Mutex<MacOsVsyncBridge> = Mutex::new(MacOsVsyncBridge {
    source_addr: 0,
    run_loop_addr: 0,
    active: false,
});