Expand description
Shared utility functions used across modules.
Functions§
- djb2
- Simple djb2 hash of a byte string — collision-resistant but not cryptographic. Used to produce stable, unique file-name suffixes.
- recover_
lock - Acquire a mutex guard, recovering from a poisoned mutex rather than propagating an error. A panicking thread does not permanently break a shared resource; we simply take ownership of the inner value and log a warning so that contention hot-spots can be identified.
- timed_
lock - Acquire a mutex guard with timing and poison recovery.