pub fn lifecycle_guard() -> RwLockWriteGuard<'static, ()>Expand description
Held while a window/renderer surface is created or destroyed; exclusive against every render thread. The caller must not already hold a render guard on this thread (would self-deadlock).