Skip to content

Fix AsyncSliceQueue#22

Merged
Guilucand merged 1 commit intoalgbio:mainfrom
jnalanko:main
Apr 15, 2023
Merged

Fix AsyncSliceQueue#22
Guilucand merged 1 commit intoalgbio:mainfrom
jnalanko:main

Conversation

@jnalanko
Copy link
Copy Markdown
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