with_lock

Function with_lock 

Source
pub fn with_lock<F: Fn() -> bool>(f: F) -> bool