safina-threadpool
This is a safe Rust thread pool library.
You can use it alone or with safina,
a safe async runtime.
Features
forbid(unsafe_code)- Depends only on
std - Good test coverage (100%)
Limitations
- Allocates memory
- Not optimized
Documentation
https://docs.rs/safina-threadpool
Examples
let pool =
new;
let receiver = ;
let results: =
receiver.iter.collect;
// ...
Alternatives
blocking- Popular
- A little
unsafecode
threadpool- Popular
- Well maintained
- Dependencies have
unsafecode
futures-executor- Very popular
- Full of
unsafe
scoped_threadpool- Popular
- Contains
unsafecode
scheduled-thread-pool- Used by a popular connection pool library
- Dependencies have
unsafecode
workerpool- Dependencies have
unsafecode
- Dependencies have
threads_pool- Full of
unsafe
- Full of
thread-pool- Old
- Dependencies have
unsafecode
tasque- Dependencies have
unsafecode
- Dependencies have
fast-threadpool- Dependencies have
unsafecode
- Dependencies have
blocking-permit- Full of
unsafe
- Full of
rayon-core- Full of
unsafe
- Full of
Changelog
- v0.1.2 - Add another example
- v0.1.1 - Simplified internals and improved documentation.
- v0.1.0 - First release
TO DO
- DONE - Add
scheduleandtry_schedule - DONE - Add tests
- DONE - Add docs
- DONE - Publish on crates.io
- Add a stress test
- Add a benchmark. See benchmarks in https://crates.io/crates/executors
- Add a way for a job to schedule another job on the same thread, with stealing.
Release Process
- Edit
Cargo.tomland bump version number. - Run
./release.sh
License: Apache-2.0