feat: Implement RAII-based file handle throttling #7

Merged
coissac merged 1 commits from push-qtnvlqlooklx into main 2026-05-22 12:03:40 +00:00

1 Commits

Author SHA1 Message Date
Eric Coissac ca71e100ef feat: Implement RAII-based file handle throttling
Introduces a thread-safe, RAII-based throttling mechanism (`throttle_paths`, `FileSlots`, `SlotsGuard`) to enforce a new `max_open_files` configuration limit. This replaces direct file opening in the scatter and superkmer pipelines with a concurrency semaphore that automatically releases handles upon completion, preventing resource exhaustion and deadlocks during concurrent I/O.
2026-05-22 14:03:24 +02:00