feat: Implement RAII-based file handle throttling #7
Reference in New Issue
Block a user
Delete Branch "push-qtnvlqlooklx"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Introduces a thread-safe, RAII-based throttling mechanism (
throttle_paths,FileSlots,SlotsGuard) to enforce a newmax_open_filesconfiguration 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.