Expand description
Synchronization utilities for safe lock acquisition.
This module provides helper functions that handle lock poisoning gracefully, preventing panic cascades when a thread panics while holding a lock.
Structs§
- Lock
Poisoned Error - Error returned when a lock is poisoned.
Functions§
- acquire_
mutex - Acquires a mutex lock, returning an error if the lock is poisoned.
- acquire_
read - Acquires a read lock, returning an error if the lock is poisoned.
- acquire_
write - Acquires a write lock, returning an error if the lock is poisoned.