Skip to main content

render_guard

Function render_guard 

Source
pub fn render_guard() -> RwLockReadGuard<'static, ()>
Expand description

Held for the duration of a render thread’s frame (acquire → present); concurrent with other render threads, but mutually exclusive with surface lifecycle. The () payload has no invariants, so a panic poisoning the lock is irrelevant — recover and continue.