std::thread::hardware_concurrency() always returns 1
Closed this issue · 1 comments
dwbuiten commented
I don't think it is a good idea to always return 1, since:
- It's not true on pretty much any modern hardware.
- The spec says:
If this value is not computable or well defined an implementation should return 0.
alxvasilev commented
Fixed. Thanks for reporting.