SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
|
A global configuration type used to enable parallel execution of algorithms. More...
#include <seqan3/core/configuration/detail/configuration_element_parallel_mode.hpp>
Public Member Functions | |
Constructors, assignment and destructor | |
parallel_mode ()=default | |
Defaulted. | |
parallel_mode (parallel_mode const &)=default | |
Defaulted. | |
parallel_mode (parallel_mode &&)=default | |
Defaulted. | |
parallel_mode & | operator= (parallel_mode const &)=default |
Defaulted. | |
parallel_mode & | operator= (parallel_mode &&)=default |
Defaulted. | |
~parallel_mode ()=default | |
Defaulted. | |
parallel_mode (uint32_t thread_count_) noexcept | |
Sets the number of threads for the parallel configuration element. | |
Public Attributes | |
std::optional< uint32_t > | thread_count {std::nullopt} |
The maximum number of threads the algorithm can use. | |
Static Private Attributes | |
static constexpr wrapped_config_id_t::value_type | id {wrapped_config_id_t::value} |
Internal id to check for consistent configuration settings. | |
A global configuration type used to enable parallel execution of algorithms.
wrapped_config_id_t | The algorithm specific configuration id wrapped in a std::integral_constant. |
This type is used to enable the parallel mode of the algorithms.
|
inlineexplicitnoexcept |
Sets the number of threads for the parallel configuration element.
[in] | thread_count_ | The maximum number of threads to be used by the algorithm. |