SourceXtractorPlusPlus  0.16
Please provide a description of the project.
MultiThreadingConfig.h
Go to the documentation of this file.
1 
17 /*
18  * MultiThreadingConfig.h
19  *
20  * Created on: May 22, 2018
21  * Author: mschefer
22  */
23 
24 #ifndef _SEIMPLEMENTATION_CONFIGURATION_MULTITHREADINGCONFIG_H_
25 #define _SEIMPLEMENTATION_CONFIGURATION_MULTITHREADINGCONFIG_H_
26 
29 
30 namespace SourceXtractor {
31 
33 public:
34  explicit MultiThreadingConfig(long manager_id);
35 
36  virtual ~MultiThreadingConfig() = default;
37 
39 
40  void initialize(const UserValues& args) override;
41 
42  int getThreadsNb() const {
43  return m_threads_nb;
44  }
45 
47  return m_thread_pool;
48  }
49 
50  unsigned getMaxQueueSize() const {
51  return m_max_queue_size;
52  }
53 
54 private:
57 };
58 
59 
60 }
61 
62 
63 #endif /* _SEIMPLEMENTATION_CONFIGURATION_MULTITHREADINGCONFIG_H_ */
std::map< std::string, OptionDescriptionList > getProgramOptions() override
const std::shared_ptr< Euclid::ThreadPool > & getThreadPool() const
void initialize(const UserValues &args) override
std::shared_ptr< Euclid::ThreadPool > m_thread_pool