A lite threadpool library written for Rust.
Usage
Cargo.toml
[]
= "0.6.0"
or
[]
= { = "https://github.com/biluohc/poolite", = "master", = "0.6.0" }
Documentation
- Visit Docs.rs
or - Run
cargo doc --openafter modified the toml file.
ChangLog
-
2017-0304 0.6.0 add
join()methods ,useONCE_INITto callnum_cpus::get()and addpush()method to avoid user callBox::new()manually. -
2017-0221 0.5.5 add a stable feature(
#[stable(feature = "arc_counts", since = "1.15.0")]),to avoid old Nightly build fails. -
2017-0221 0.5.4 rewrite examples.
-
2017-0211 0.5.3 stderr up to 0.7.0.
-
2017-0208 0.5.2 use trait to manage
RwLock<T>in Inner, add a keyword 'threadpool'. -
2017-0129 0.5.1 add
add_threads()method,completedaemon()method. -
2017-0128 0.5.0 update API,
run(self)->selftorun(self)->Result<Self, PoolError>, addIntoPoolandIntoIOResult(trait). -
2017-0123 0.4.4 add
max()method to set maximum number of threads. -
2017-0121 0.4.3 Fix the document about
load_limit(),the bug about block already fixed by last commit. -
2017-0121 0.4.2 Fix a bug
attempt to divide by zeroand complete tests. -
2017-0121 0.4.1 Remove constants's
pub,modifieddaemon()(bool->Option<64>),change the default value of load_limit and reorder the document. -
2017-0120 0.4.0 add
daemon(),num_cpus()methods, and move documentation to doc.rs. -
2017-0112 0.3.0 remove all
unwrap()and addload_limit(),is_empty(), tasks_len(), len(), wait_len(), strong_count()methods. -
2016-0102 0.2.1 use unstable
FnBox()to supportFnOnce()(Only support Nightly now,Stable or Beta should use 0.2.0). -
2016-0101 0.2.0 add
min(),time_out(),name(),stack_size(),run()methods.