Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AsyncSliceQueue #22

Merged
merged 1 commit into from
Apr 15, 2023
Merged

Fix AsyncSliceQueue #22

merged 1 commit into from
Apr 15, 2023

Conversation

jnalanko
Copy link
Contributor

The for-loop in AsyncSliceQueue::new pushes only max_slices_buffers_count-1 vectors to the chunks buffers pool. This is a problem at least when max_slices_buffers_count is 1, which is the case when the number of threads is 1, in which case nothing is pushed. The function add_data will then get stuck in the inner loop, because self.chunks_buffers_pool.1.try_recv() always fails because there is nothing in the pool.

@Guilucand Guilucand merged commit 7de38ed into algbio:main Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants