You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The resultant executable will hang. This seems to be caused by fact that the thread_pool goes out of scope, as can be seen by the fact that this snippet does not hang:
If you run this:
The resultant executable will hang. This seems to be caused by fact that the thread_pool goes out of scope, as can be seen by the fact that this snippet does not hang:
The cause of this seems to be that
bgzf::Reader::set_thread_pool
does not keep a reference to the underlying thread_pool handle as it should do according to the documentation ofThreadPool
(see https://docs.rs/rust-htslib/latest/rust_htslib/tpool/struct.ThreadPool.html) and as thebgzf::Writer::set_thread_pool
method does (see https://github.com/rust-bio/rust-htslib/blob/master/src/bgzf/mod.rs#L244)The text was updated successfully, but these errors were encountered: