SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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
27#include "Configuration/Configuration.h"
28#include "AlexandriaKernel/ThreadPool.h"
29
30namespace SourceXtractor {
31
33public:
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
49
50 unsigned getMaxQueueSize() const {
51 return m_max_queue_size;
52 }
53
54private:
57};
58
59
60}
61
62
63#endif /* _SEIMPLEMENTATION_CONFIGURATION_MULTITHREADINGCONFIG_H_ */
const std::shared_ptr< Euclid::ThreadPool > & getThreadPool() const
std::map< std::string, OptionDescriptionList > getProgramOptions() override
void initialize(const UserValues &args) override
std::shared_ptr< Euclid::ThreadPool > m_thread_pool