Function rust_htslib::htslib::bgzf_thread_pool [] [src]

pub unsafe extern "C" fn bgzf_thread_pool(
    fp: *mut BGZF,
    pool: *mut hts_tpool,
    qsize: c_int
) -> c_int

Enable multi-threading (when compiled with -DBGZF_MT) via a shared thread pool. This means both encoder and decoder can balance usage across a single pool of worker jobs.

@param fp BGZF file handler; must be opened for writing @param pool The thread pool (see hts_create_threads)