Deprecated tbb::task_scheduler_init replaced with std::thread and tbb::global_control
This commit is contained in:
@@ -7,8 +7,6 @@
|
||||
#include "util/timing_util.hpp"
|
||||
#include "util/version.hpp"
|
||||
|
||||
#include <tbb/task_scheduler_init.h>
|
||||
|
||||
#include <boost/algorithm/string/join.hpp>
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/program_options.hpp>
|
||||
@@ -17,6 +15,7 @@
|
||||
#include <iostream>
|
||||
#include <iterator>
|
||||
#include <regex>
|
||||
#include <thread>
|
||||
|
||||
using namespace osrm;
|
||||
|
||||
@@ -86,7 +85,7 @@ return_code parseArguments(int argc,
|
||||
//
|
||||
("threads,t",
|
||||
boost::program_options::value<unsigned int>(&config.requested_num_threads)
|
||||
->default_value(tbb::task_scheduler_init::default_num_threads()),
|
||||
->default_value(std::thread::hardware_concurrency()),
|
||||
"Number of threads to use")
|
||||
//
|
||||
("balance",
|
||||
|
||||
Reference in New Issue
Block a user