boostorg / thread

Boost.org thread module
http://boost.org/libs/thread
199 stars 161 forks source link

thread::physical_concurrency() allocates a buffer that is bigger than necessary #224

Closed Remi-Coulom closed 6 years ago

Remi-Coulom commented 6 years ago

buffer(size); should be buffer(size / sizeof(SYSTEM_LOGICAL_PROCESSOR_INFORMATION))

https://github.com/boostorg/thread/blob/develop/src/win32/thread.cpp

On line 526

viboes commented 6 years ago

Thanks fror this report.

PR is welcome.

viboes commented 6 years ago

https://github.com/boostorg/thread/commit/de7608f06730e1802958d4b0b03f378c08fc8bb1