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

Event dispatchers. More...

Namespaces

namespace  active_group
 Active groups dispatcher.
 
namespace  active_obj
 Active objects dispatcher.
 
namespace  adv_thread_pool
 Advanced thread pool dispatcher.
 
namespace  mpmc_queue_traits
 Various stuff related to MPMC event queue implementation and tuning.
 
namespace  mpsc_queue_traits
 Various stuff related to MPSC event queue implementation and tuning.
 
namespace  nef_one_thread
 
namespace  nef_thread_pool
 
namespace  one_thread
 Dispatcher with single working thread.
 
namespace  prio_dedicated_threads
 Dispatchers with dedicated threads for every priority.
 
namespace  prio_one_thread
 Dispatcher with one working thread for events of all priorities.
 
namespace  reuse
 Reusable components for dispatchers.
 
namespace  std_work_thread_impl
 
namespace  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
 An alias for shared_ptr to abstract_work_thread_factory.
 

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.
 

Detailed Description

Event dispatchers.

Typedef Documentation

◆ abstract_work_thread_factory_shptr_t

Initial value:
std::shared_ptr<
abstract_work_thread_factory_t >

An alias for shared_ptr to abstract_work_thread_factory.

Since
v.5.7.3

Definition at line 205 of file abstract_work_thread.hpp.

Function Documentation

◆ make_std_work_thread_factory()

SO_5_FUNC abstract_work_thread_factory_shptr_t so_5::disp::make_std_work_thread_factory ( )
nodiscard

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() );
} );
Parameters for the SObjectizer Environment initialization.
SObjectizer Environment.
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.
void launch(Init_Routine &&init_routine)
Launch a SObjectizer Environment with default parameters.
Definition api.hpp:142
Since
v.5.7.3

Definition at line 128 of file abstract_work_thread.cpp.