Expose thread_manager for debugging purposes

master
trivernis 5 years ago
parent 0408a5aea0
commit 2dc3cb40b6

@ -1,6 +1,6 @@
[package]
name = "bdflib"
version = "0.3.5"
version = "0.3.6"
authors = ["trivernis <trivernis@gmail.com>"]
edition = "2018"
license-file = "LICENSE"

@ -12,7 +12,7 @@ use crossbeam_utils::sync::WaitGroup;
const ENTRIES_PER_CHUNK: u32 = 100_000;
#[derive(Debug)]
struct ThreadManager<T1, T2> {
pub struct ThreadManager<T1, T2> {
pub sender_work: Sender<T1>,
pub receiver_work: Receiver<T1>,
pub sender_result: Sender<T2>,
@ -38,7 +38,7 @@ pub struct BDFWriter {
head_written: bool,
compressed: bool,
compression_level: u32,
thread_manager: ThreadManager<GenericChunk, Vec<u8>>,
pub thread_manager: ThreadManager<GenericChunk, Vec<u8>>,
}
impl<T1, T2> ThreadManager<T1, T2> {

Loading…
Cancel
Save