Skip to content

Latest commit

History

History
29 lines (19 loc) 路 1.1 KB

File metadata and controls

29 lines (19 loc) 路 1.1 KB

windows-threading

Simple, safe access to the Windows thread pool.

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.


Internal documentation

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.

How it's built

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.

Testing

Run cargo test -p windows-threading; see also the workspace test crates.