SObjectizer  5.5
Namespaces | Classes | Functions
so_5::disp::active_group Namespace Reference

Active groups dispatcher. More...

Namespaces

 impl
 Active groups dispatcher implemetation details.
 

Classes

class  disp_params_t
 Alias for namespace with traits of event queue. More...
 
class  dispatcher_handle_t
 A handle for active_group dispatcher. More...
 

Functions

SO_5_FUNC dispatcher_handle_t make_dispatcher ( so_5::environment_t &env, const std::string_view data_sources_name_base, disp_params_t params)
 Create an instance of active_group dispatcher. More...
 
dispatcher_handle_t make_dispatcher (so_5::environment_t &env, const std::string_view data_sources_name_base)
 Create an instance of active_group dispatcher. More...
 
dispatcher_handle_t make_dispatcher (so_5::environment_t &env)
 Create an instance of active_group dispatcher. More...
 

Detailed Description

Active groups dispatcher.

Function Documentation

◆ make_dispatcher() [1/3]

dispatcher_handle_t so_5::disp::active_group::make_dispatcher ( so_5::environment_t env,
const std::string_view  data_sources_name_base 
)
inline

Create an instance of active_group dispatcher.

Usage sample
env,
"long_req_handlers" );
auto coop = env.make_coop(
// The main dispatcher for that coop will be
// this instance of active_group dispatcher.
disp.binder( "passive_objects" ) );
Since
v.5.6.0
Parameters
envSObjectizer Environment to work in.
data_sources_name_baseValue for creating names of data sources for run-time monitoring.

◆ make_dispatcher() [2/3]

dispatcher_handle_t so_5::disp::active_group::make_dispatcher ( so_5::environment_t env)
inline

Create an instance of active_group dispatcher.

Usage sample
auto coop = env.make_coop(
// The main dispatcher for that coop will be
// this instance of active_group dispatcher.
disp.binder( "passive_objects" ) );
Since
v.5.6.0
Parameters
envSObjectizer Environment to work in.

◆ make_dispatcher() [3/3]

SO_5_FUNC dispatcher_handle_t so_5::disp::active_group::make_dispatcher ( so_5::environment_t env,
const std::string_view  data_sources_name_base,
disp_params_t  params 
)

Create an instance of active_group dispatcher.

Usage sample
env,
"request_handler",
// Additional params with specific options for queue's traits.
[]( so_5::disp::active_group::queue_traits::queue_params_t & p ) {
} ) );
auto coop = env.make_coop(
// The main dispatcher for that coop will be
// this instance of active_group dispatcher.
disp.binder( "request_handler" ) );
Since
v.5.6.0
Parameters
envSObjectizer Environment to work in.
data_sources_name_baseValue for creating names of data sources for run-time monitoring.
paramsParameters for dispatcher.
Examples:
so_5/adv_thread_pool_fifo/main.cpp, so_5/disp/main.cpp, so_5/prio_work_stealing/main.cpp, and so_5/producer_consumer_mchain/main.cpp.