SObjectizer  5.8
Loading...
Searching...
No Matches
so_5::disp::nef_one_thread Namespace Reference

Namespaces

namespace  impl
 

Classes

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

Functions

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

Function Documentation

◆ make_dispatcher() [1/3]

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

Create an instance of nef_one_thread dispatcher.

Usage sample
env,
"request_processor",
[]( so_5::disp::nef_one_thread::queue_traits::queue_params_t & p ) {
p.lock_factory( so_5::disp::nef_one_thread::queue_traits::simple_lock_factory() );
} ) );
auto coop = env.make_coop(
// The main dispatcher for that coop will be
// this instance of nef_one_thread dispatcher.
my_disp.binder() );
Alias for namespace with traits of event queue.
disp_params_t & tune_queue_params(L tunner)
Tuner for queue parameters.
SO_5_FUNC dispatcher_handle_t make_dispatcher(environment_t &env, const std::string_view data_sources_name_base, disp_params_t params)
Create an instance of nef_one_thread dispatcher.
Since
v.5.8.0
Parameters
envSObjectizer Environment to work in.
data_sources_name_baseValue for creating names of data sources for run-time monitoring.
paramsParameters for the dispatcher.

Definition at line 733 of file nef_one_thread/pub.cpp.

◆ make_dispatcher() [2/3]

dispatcher_handle_t so_5::disp::nef_one_thread::make_dispatcher ( environment_t & env)
inline

Create an instance of nef_one_thread dispatcher.

Usage sample
auto coop = env.make_coop(
// The main dispatcher for that coop will be
// private nef_one_thread dispatcher.
my_disp.binder() );
Since
v.5.8.0

Definition at line 165 of file nef_one_thread/pub.hpp.

◆ make_dispatcher() [3/3]

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

Create an instance of nef_one_thread dispatcher.

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

Definition at line 136 of file nef_one_thread/pub.hpp.