jhpratt / num_threads

Obtain the number of threads in the current process
https://docs.rs/num_threads
Apache License 2.0
12 stars 7 forks source link

Use /proc/self/stat on Linux (#1) #3

Closed Freaky closed 2 years ago

Freaky commented 2 years ago

Tested under WSL 1.

jhpratt commented 2 years ago

CI runs on MSRV of 1.28. This is the 2015 edition, so some sort of import for std is necessary. NonZero*::parse also hadn't existed yet.

jhpratt commented 2 years ago

Diff looks good. I'll test it locally later.