|
SObjectizer
5.7
|
Advanced thread pool dispatcher. More...
Namespaces | |
| anonymous_namespace{pub.cpp} | |
| impl | |
| Internal implementation details of advanced thread pool dispatcher. | |
Classes | |
| class | bind_params_t |
| Parameters for binding agents to adv_thread_pool dispatcher. More... | |
| class | disp_params_t |
| Alias for namespace with traits of event queue. More... | |
| class | dispatcher_handle_t |
| A handle for adv_thread_pool dispatcher. More... | |
Enumerations | |
| enum | fifo_t { fifo_t::cooperation, fifo_t::individual } |
| Type of FIFO mechanism for agent's demands. More... | |
Functions | |
| SO_5_FUNC dispatcher_handle_t | make_dispatcher ( environment_t &env, const std::string_view data_sources_name_base, disp_params_t disp_params) |
| Create an instance of adv_thread_pool dispatcher. More... | |
| std::size_t | default_thread_pool_size () |
| A helper function for detecting default thread count for thread pool. More... | |
| dispatcher_handle_t | make_dispatcher (environment_t &env, const std::string_view data_sources_name_base, std::size_t thread_count) |
| Create an instance of adv_thread_pool dispatcher. More... | |
| dispatcher_handle_t | make_dispatcher (environment_t &env, std::size_t thread_count) |
| Create an instance of adv_thread_pool dispatcher. More... | |
| dispatcher_handle_t | make_dispatcher (environment_t &env) |
| Create an instance of adv_thread_pool dispatcher with the default count of work threads. More... | |
Advanced thread pool dispatcher.
|
strong |
Type of FIFO mechanism for agent's demands.
|
inline |
A helper function for detecting default thread count for thread pool.
Returns value of std::thread::hardware_concurrency() or 2 if hardware_concurrency() returns 0.
| SO_5_FUNC dispatcher_handle_t so_5::disp::adv_thread_pool::make_dispatcher | ( | environment_t & | env, |
| const std::string_view | data_sources_name_base, | ||
| disp_params_t | disp_params | ||
| ) |
Create an instance of adv_thread_pool dispatcher.
| env | SObjectizer Environment to work in. |
| data_sources_name_base | Value for creating names of data sources for run-time monitoring. |
| disp_params | Parameters for the dispatcher. |
|
inline |
Create an instance of adv_thread_pool dispatcher.
| env | SObjectizer Environment to work in. |
| data_sources_name_base | Value for creating names of data sources for run-time monitoring. |
| thread_count | Count of working threads. |
|
inline |
Create an instance of adv_thread_pool dispatcher.
| env | SObjectizer Environment to work in. |
| thread_count | Count of working threads. |
|
inline |
Create an instance of adv_thread_pool dispatcher with the default count of work threads.
Count of work threads will be detected by default_thread_pool_size() function.
| env | SObjectizer Environment to work in. |
1.8.14