Skip to content
Snippets Groups Projects
Commit 86942629 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Allow thread pool size control

parent 4908379c
No related branches found
No related tags found
1 merge request!95Implements #156 expose config options
Pipeline #12928 passed
...@@ -519,6 +519,10 @@ Configurable *ftl::config::configure(int argc, char **argv, const std::string &r ...@@ -519,6 +519,10 @@ Configurable *ftl::config::configure(int argc, char **argv, const std::string &r
// Some global settings // Some global settings
ftl::timer::setInterval(rootcfg->value("fps",20)); 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"]; //LOG(INFO) << "CONFIG: " << config["vision_default"];
//CHECK_EQ( &config, config_index["ftl://utu.fi"] ); //CHECK_EQ( &config, config_index["ftl://utu.fi"] );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment