SObjectizer  5.5
Classes | Namespaces | Typedefs | Functions
timers.cpp File Reference

Timers and tools for working with timers. More...

#include <so_5/details/h/abort_on_fatal_error.hpp>
#include <so_5/rt/impl/h/mbox_iface_for_timers.hpp>
#include <so_5/h/stdcpp.hpp>
#include <so_5/h/timers.hpp>
#include <timertt/all.hpp>

Classes

class  so_5::timers_details::actual_timer_t< Timer >
 An actual implementation of timer interface. More...
 
class  so_5::timers_details::timer_action_for_timer_thread_t
 A functor to be used as timer action in implementation of timer thread. More...
 
class  so_5::timers_details::actual_thread_t< Timer_Thread >
 An actual implementation of timer thread. More...
 
class  so_5::timers_details::timer_action_for_timer_manager_t
 A functor to be used as timer action in implementation of timer thread. More...
 
class  so_5::timers_details::actual_manager_t< Timer_Manager >
 An actual implementation of timer_manager. More...
 

Namespaces

 so_5
 Public part of message limit implementation.
 
 so_5::timers_details
 Timers implementation details.
 

Typedefs

using so_5::timers_details::error_logger_for_timertt_t = std::function< void(const std::string &) >
 Type of error_logger for timertt stuff. More...
 
using so_5::timers_details::exception_handler_for_timertt_t = std::function< void(const std::exception &) >
 Type of actor_exception_handler for timertt stuff. More...
 
Short synonyms for timertt templates.
using so_5::timers_details::timer_wheel_thread_t = timertt::timer_wheel_thread_template< timer_action_for_timer_thread_t, error_logger_for_timertt_t, exception_handler_for_timertt_t >
 timer_wheel thread type. More...
 
using so_5::timers_details::timer_heap_thread_t = timertt::timer_heap_thread_template< timer_action_for_timer_thread_t, error_logger_for_timertt_t, exception_handler_for_timertt_t >
 timer_heap thread type. More...
 
using so_5::timers_details::timer_list_thread_t = timertt::timer_list_thread_template< timer_action_for_timer_thread_t, error_logger_for_timertt_t, exception_handler_for_timertt_t >
 timer_list thread type. More...
 
using so_5::timers_details::timer_wheel_manager_t = timertt::timer_wheel_manager_template< timertt::thread_safety::unsafe, timer_action_for_timer_manager_t, error_logger_for_timertt_t, exception_handler_for_timertt_t >
 timer_wheel manager type. More...
 
using so_5::timers_details::timer_heap_manager_t = timertt::timer_heap_manager_template< timertt::thread_safety::unsafe, timer_action_for_timer_manager_t, error_logger_for_timertt_t, exception_handler_for_timertt_t >
 timer_heap manager type. More...
 
using so_5::timers_details::timer_list_manager_t = timertt::timer_list_manager_template< timertt::thread_safety::unsafe, timer_action_for_timer_manager_t, error_logger_for_timertt_t, exception_handler_for_timertt_t >
 timer_list manager type. More...
 

Functions

error_logger_for_timertt_t so_5::timers_details::create_error_logger_for_timertt (const error_logger_shptr_t &logger)
 
exception_handler_for_timertt_t so_5::timers_details::create_exception_handler_for_timertt_thread (const error_logger_shptr_t &logger)
 
exception_handler_for_timertt_t so_5::timers_details::create_exception_handler_for_timertt_manager (const error_logger_shptr_t &logger)
 
Tools for creating timer threads.
SO_5_FUNC timer_thread_unique_ptr_t so_5::create_timer_wheel_thread ( error_logger_shptr_t logger)
 Create timer thread based on timer_wheel mechanism. More...
 
SO_5_FUNC timer_thread_unique_ptr_t so_5::create_timer_wheel_thread ( error_logger_shptr_t logger, unsigned int wheel_size, std::chrono::steady_clock::duration granuality)
 Create timer thread based on timer_wheel mechanism. More...
 
SO_5_FUNC timer_thread_unique_ptr_t so_5::create_timer_heap_thread ( error_logger_shptr_t logger)
 Create timer thread based on timer_heap mechanism. More...
 
SO_5_FUNC timer_thread_unique_ptr_t so_5::create_timer_heap_thread ( error_logger_shptr_t logger, std::size_t initial_heap_capacity)
 Create timer thread based on timer_heap mechanism. More...
 
SO_5_FUNC timer_thread_unique_ptr_t so_5::create_timer_list_thread ( error_logger_shptr_t logger)
 Create timer thread based on timer_list mechanism. More...
 
Tools for creating timer managers.
SO_5_FUNC timer_manager_unique_ptr_t so_5::create_timer_wheel_manager ( error_logger_shptr_t logger, outliving_reference_t< timer_manager_t::elapsed_timers_collector_t > collector)
 Create timer manager based on timer_wheel mechanism. More...
 
SO_5_FUNC timer_manager_unique_ptr_t so_5::create_timer_wheel_manager ( error_logger_shptr_t logger, outliving_reference_t< timer_manager_t::elapsed_timers_collector_t > collector, unsigned int wheel_size, std::chrono::steady_clock::duration granuality)
 Create timer manager based on timer_wheel mechanism. More...
 
SO_5_FUNC timer_manager_unique_ptr_t so_5::create_timer_heap_manager ( error_logger_shptr_t logger, outliving_reference_t< timer_manager_t::elapsed_timers_collector_t > collector)
 Create timer manager based on timer_heap mechanism. More...
 
SO_5_FUNC timer_manager_unique_ptr_t so_5::create_timer_heap_manager ( error_logger_shptr_t logger, outliving_reference_t< timer_manager_t::elapsed_timers_collector_t > collector, std::size_t initial_heap_capacity)
 Create timer manager based on timer_heap mechanism. More...
 
SO_5_FUNC timer_manager_unique_ptr_t so_5::create_timer_list_manager ( error_logger_shptr_t logger, outliving_reference_t< timer_manager_t::elapsed_timers_collector_t > collector)
 Create timer thread based on timer_list mechanism. More...
 

Detailed Description

Timers and tools for working with timers.

Since
v.5.5.0