Struct rust_htslib::tpool::ThreadPool [−][src]
pub struct ThreadPool { /* fields omitted */ }
Expand description
An HTSlib thread pool. Create a thread pool and use set_thread_pool()
methods
to share a thread pool across multiple BAM readers & writers.
The Rust wrapper holds the htslib thread pool behind a Rc, and a Rc reference
to the thread pool is held by each reader / writer so you don’t need to
explicitly manage the lifetime of the ThreadPool
.
Implementations
Create a new thread pool with n_threads
threads.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ThreadPool
impl !Send for ThreadPool
impl !Sync for ThreadPool
impl Unpin for ThreadPool
impl !UnwindSafe for ThreadPool
Blanket Implementations
Mutably borrows from an owned value. Read more