std-threadpool 0.1.0

Threadpool implementation
Documentation
  • Coverage
  • 25%
    1 out of 4 items documented1 out of 4 items with examples
  • Size
  • Source code size: 4.5 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.25 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Logan-010/std-threadpool
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Logan-010

Basic thread pool implementation using some code from the rust book.

Basic usage:

//create a new thread pool with the specified number of threads
let workers: ThreadPool = ThreadPool::new(4);

//execute a closure from the thread pool
workers.execute(|| {
    println!("Hello from a worker thread!");
}).unwrap();

Go to https://docs.rs/std-threadpool/