Skip to content

Commit

Permalink
Create simple threadpool for avoiding constant thread creation (#115)
Browse files Browse the repository at this point in the history
* added simple threadpool

* refactor to simplify

* clean up error handling

* make sure we carousel through the threads

* cleaned up the way results are returned
  • Loading branch information
mcroomp authored Nov 20, 2024
1 parent 7ee30b6 commit 5997f8c
Show file tree
Hide file tree
Showing 3 changed files with 226 additions and 219 deletions.
4 changes: 4 additions & 0 deletions src/structs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ mod probability_tables;
mod quantization_tables;
mod row_spec;
mod simple_hash;

#[cfg(not(feature = "use_rayon"))]
mod simple_threadpool;

mod thread_handoff;
mod truncate_components;
mod vpx_bool_reader;
Expand Down
Loading

0 comments on commit 5997f8c

Please sign in to comment.