Files
foxhunt/ml/src
jgrusewski 322c43db44 fix(ml): recover from mutex poisoning in Rayon quantization with unwrap_or_else
Replace all 8 `.lock().unwrap()` calls in the Rayon parallel closure of
`quantize_varmap_parallel` with `.lock().unwrap_or_else(|e| e.into_inner())`
so that mutex poisoning (caused by a panicking Rayon thread) does not
cascade and crash all other worker threads — the guard is recovered from
the poisoned state and processing continues safely.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 23:26:40 +01:00
..