24 #include <boost/thread.hpp>
28 using namespace Euclid::Configuration;
29 namespace po = boost::program_options;
31 namespace SourceXtractor {
36 MultiThreadingConfig::MultiThreadingConfig(
long manager_id) :
Configuration(manager_id), m_threads_nb(-1), m_max_queue_size(1000) {}
39 return { {
"Multi-threading", {
40 {
THREADS_NB.
c_str(), po::value<int>()->default_value(-1),
"Number of worker threads (-1=automatic, 0=disable all multithreading)"},
41 {
MAX_QUEUE_SIZE.
c_str(), po::value<int>()->default_value(1000),
"Limit the size of the internal queues"}