Skip to main content

snapshot_controls

Function snapshot_controls 

Source
pub fn snapshot_controls(component: &Arc<RwLock<Component>>) -> ControlMap
Expand description

Snapshot the controls visible from component (its own controls plus any Subtree-scoped ancestor control, nearest-wins) into a lock-free ControlMap. Deadlock-safe: Component::control_snapshot acquires one tier’s lock at a time, never nested — so it is safe on the cadence-contended component tree. Computed once per phase, shared across the phase’s fibers.