Simple, safe access to the Windows thread pool.
- 馃摝 crates.io
- 馃摉 docs.rs
- 馃殌 Getting started
- 馃З Samples
- 馃搧 Source
windows-threading exposes the Windows thread pool through a small, safe API. submit runs a
closure on a pool thread, for_each runs a closure over an iterator in parallel and waits for
completion, and the Pool type offers direct control including thread limits and scoped submission.
The remainder of this page covers how the crate is built and maintained. It is for contributors and
is not needed to use windows-threading.
src/bindings.rs is generated by tool_bindings from crates/tools/bindings/src/threading.txt;
Pool and the submit/for_each helpers are hand-written.
Run cargo test -p windows-threading; see also the workspace test crates.