Skip to main content

fork_guard

Function fork_guard 

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

Hold across a spawn so no executable is being written meanwhile.

Never hold it while planning a launch: planning may take the exclusive guard to install a loader.