SObjectizer  5.7
Namespaces | Classes | Typedefs | Functions
so_5::disp Namespace Reference

Event dispatchers. More...

Namespaces

 active_group
 Active groups dispatcher.
 
 active_obj
 Active objects dispatcher.
 
 adv_thread_pool
 Advanced thread pool dispatcher.
 
 mpmc_queue_traits
 Various stuff related to MPMC event queue implementation and tuning.
 
 mpsc_queue_traits
 Various stuff related to MPSC event queue implementation and tuning.
 
 one_thread
 Dispatcher with single working thread.
 
 prio_dedicated_threads
 Dispatchers with dedicated threads for every priority.
 
 prio_one_thread
 Dispatcher with one working thread for events of all priorities.
 
 reuse
 Reusable components for dispatchers.
 
 std_work_thread_impl
 
 thread_pool
 Thread pool dispatcher.
 

Classes

class  abstract_work_thread_factory_t
 An interface of factory for management of worker threads. More...
 
class  abstract_work_thread_t
 An interface for one worker thread. More...
 
class  work_thread_holder_t
 An analog of unique_ptr for abstract_work_thread. More...
 

Typedefs

using abstract_work_thread_factory_shptr_t = std::shared_ptr< abstract_work_thread_factory_t >
 An alias for shared_ptr to abstract_work_thread_factory. More...
 

Functions

SO_5_FUNC abstract_work_thread_factory_shptr_t make_std_work_thread_factory ()
 Get a standard SObjectizer's work thread factory that is used by default. More...
 

Detailed Description

Event dispatchers.

Typedef Documentation

◆ abstract_work_thread_factory_shptr_t

An alias for shared_ptr to abstract_work_thread_factory.

Since
v.5.7.3

Function Documentation

◆ make_std_work_thread_factory()

SO_5_FUNC abstract_work_thread_factory_shptr_t so_5::disp::make_std_work_thread_factory ( )

Get a standard SObjectizer's work thread factory that is used by default.

Usage example:

...
},
[&]( so_5::environment_params_t & params ) {
params.work_thread_factory( some_condition ?
my_work_thread_factory() : so_5::disp::make_std_work_thread_factory() );
} );
Since
v.5.7.3