Skip to main content

Crate tilo_lock

Crate tilo_lock 

Source
Expand description

Locking that outlives a panicking holder: a poisoned lock hands back its guard instead of an error.

A release build aborts on a panic outside tilo_rt::panic_boundary::isolate, so no thread meets a lock another poisoned, and state shared across such a boundary must treat a poisoned lock as unavailable. Debug and test builds unwind everywhere, where recovering keeps one failed test from cascading into every later lock of the same state.

Modules§

deferred
Code a program fetches after its first frame, through a loader it registers (Deferred::defer).

Traits§

MutexRecover
Mutex::lock, recovering the guard of a poisoned mutex.
RwLockRecover
RwLock::read and RwLock::write, recovering the guard of a poisoned lock.