diff --git a/src/common.h b/src/common.h index b951556e..b457cbc0 100644 --- a/src/common.h +++ b/src/common.h @@ -10,12 +10,13 @@ #include #include #include +#include #include using namespace std; -constexpr auto kMaxThreads = 16u; +static const auto kMaxThreads = std::thread::hardware_concurrency(); #ifdef ENABLE_DEBUG // TODO does not work anymore because we added explicit to constructors