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
Owner

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.

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.
coissac added 1 commit 2026-05-22 12:03:35 +00:00
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.
coissac merged commit 9b700ff4a4 into main 2026-05-22 12:03:40 +00:00
coissac deleted branch push-qtnvlqlooklx 2026-05-22 12:03:41 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: OBIKmers/obikmer#7