diff --git a/components/common/cpp/src/configuration.cpp b/components/common/cpp/src/configuration.cpp index 06cf11c854c99845ef57e8b72d6ad11bbfac0cd3..786c07e5f55750fde8a1f543b5549f1c1e980901 100644 --- a/components/common/cpp/src/configuration.cpp +++ b/components/common/cpp/src/configuration.cpp @@ -519,6 +519,10 @@ Configurable *ftl::config::configure(int argc, char **argv, const std::string &r // Some global settings ftl::timer::setInterval(rootcfg->value("fps",20)); + int pool_size = rootcfg->value("thread_pool_factor", 2.0f)*std::thread::hardware_concurrency(); + if (pool_size != ftl::pool.size()) ftl::pool.resize(pool_size); + + //LOG(INFO) << "CONFIG: " << config["vision_default"]; //CHECK_EQ( &config, config_index["ftl://utu.fi"] );