SObjectizer  5.8
Loading...
Searching...
No Matches
simple_mtsafe_st_env_infrastructure.cpp File Reference

A very simple multithreaded-safe single thread environment infrastructure. More...

Go to the source code of this file.

Classes

struct  so_5::env_infrastructures::simple_mtsafe::impl::main_thread_sync_objects_t
 A bunch of sync objects which need to be shared between various parts of env_infrastructure. More...
 
class  so_5::env_infrastructures::simple_mtsafe::impl::event_queue_impl_t
 Implementation of event_queue interface for this type of environment infrastructure. More...
 
struct  so_5::env_infrastructures::simple_mtsafe::impl::event_queue_impl_t::stats_t
 Type for representation of statistical data for this event queue. More...
 
struct  so_5::env_infrastructures::simple_mtsafe::impl::disp_ds_name_parts_t
 A special class for generation of names for dispatcher data sources. More...
 
class  so_5::env_infrastructures::simple_mtsafe::impl::env_infrastructure_t< Activity_Tracker >
 Default implementation of multithreaded environment infrastructure. More...
 

Namespaces

namespace  so_5
 Private part of message limit implementation.
 
namespace  so_5::env_infrastructures
 Various implementations of environment_infrastructure.
 
namespace  so_5::env_infrastructures::simple_mtsafe
 Simple single-threaded environment infrastructure with thread safety.
 
namespace  so_5::env_infrastructures::simple_mtsafe::impl
 Implementation details.
 
namespace  so_5::env_infrastructures::simple_mtsafe::impl::helpers
 

Typedefs

using so_5::env_infrastructures::simple_mtsafe::impl::shutdown_status_t = reusable::shutdown_status_t
 A short name for namespace with run-time stats stuff.
 
using so_5::env_infrastructures::simple_mtsafe::impl::coop_repo_t = reusable::coop_repo_t
 Implementation of coop_repository for simple thread-safe single-threaded environment infrastructure.
 
template<typename Activity_Tracker >
using so_5::env_infrastructures::simple_mtsafe::impl::default_dispatcher_t
 An implementation of dispatcher to be used in places where default dispatcher is needed.
 
using so_5::env_infrastructures::simple_mtsafe::impl::stats_controller_t
 Implementation of stats_controller for that type of single-threaded environment.
 

Enumerations

enum class  so_5::env_infrastructures::simple_mtsafe::impl::main_thread_status_t { so_5::env_infrastructures::simple_mtsafe::impl::working , so_5::env_infrastructures::simple_mtsafe::impl::waiting }
 A short name for namespace with run-time stats stuff. More...
 

Functions

template<typename Action >
auto so_5::env_infrastructures::simple_mtsafe::impl::helpers::unlock_do_and_lock_again (std::unique_lock< std::mutex > &acquired_lock, Action &&action) -> decltype(action())
 
void so_5::env_infrastructures::simple_mtsafe::impl::wakeup_if_waiting (main_thread_sync_objects_t &sync_objects)
 
SO_5_FUNC environment_infrastructure_factory_t so_5::env_infrastructures::simple_mtsafe::factory (params_t &&params)
 A factory for creation of simple thread-safe single-thread environment infrastructure object.
 

Detailed Description

A very simple multithreaded-safe single thread environment infrastructure.

Since
v.5.5.19

Definition in file simple_mtsafe_st_env_infrastructure.cpp.