Rust: Using Windows thread pool
Quick demo how to use Windows thread pool in Rust using
windows crate.
Create new project
PS C:\> mkdir prj
PS C:\> cd prj
PS C:\> cargo new thread_pool_work
Edit Cargo.toml like below
Update src/main.rs
Run thread_pool_work
PS C:\prj\thread_pool_work> cargo run
Compiling thread_pool_work v0.1.0 (C:\prj\thread_pool_work)
Finished dev [unoptimized + debuginfo] target(s) in 0.64s
Running `target\debug\thread_pool_work.exe`
counter: 10
Tags: Rust, Windows, thread pool
Comments