Skip to main content

lock

Function lock 

Source
fn lock<T>(m: &Mutex<T>) -> MutexGuard<'_, T>
Expand description

A lock recovered if a panic elsewhere poisoned it: every holder leaves the guarded state consistent, and a poisoned lock must not wedge every later op.