SObjectizer  5.7
Public Member Functions | Public Attributes | List of all members
so_5::disp::reuse::work_thread::details::common_data_t< Demand_Queue > Struct Template Reference

Common data for all work thread implementations. More...

#include <work_thread.hpp>

Public Member Functions

 common_data_t (work_thread_holder_t thread_holder, queue_traits::lock_factory_t queue_lock_factory)
 

Public Attributes

work_thread_holder_t m_thread_holder
 Working thread. More...
 
std::atomic< status_tm_status { status_t::stopped }
 Thread status flag. More...
 
Demand_Queue m_queue
 Demands queue. More...
 
so_5::current_thread_id_t m_thread_id
 ID of working thread. More...
 
demands_counter_t m_demands_count = { 0 }
 A counter for calculating count of demands in the queue. More...
 

Detailed Description

template<typename Demand_Queue>
struct so_5::disp::reuse::work_thread::details::common_data_t< Demand_Queue >

Common data for all work thread implementations.

Since
v.5.5.18

Constructor & Destructor Documentation

◆ common_data_t()

template<typename Demand_Queue>
so_5::disp::reuse::work_thread::details::common_data_t< Demand_Queue >::common_data_t ( work_thread_holder_t  thread_holder,
queue_traits::lock_factory_t  queue_lock_factory 
)
inline

Member Data Documentation

◆ m_demands_count

template<typename Demand_Queue>
demands_counter_t so_5::disp::reuse::work_thread::details::common_data_t< Demand_Queue >::m_demands_count = { 0 }

A counter for calculating count of demands in the queue.

Note
Will be used for run-time monitoring.

◆ m_queue

template<typename Demand_Queue>
Demand_Queue so_5::disp::reuse::work_thread::details::common_data_t< Demand_Queue >::m_queue

Demands queue.

◆ m_status

template<typename Demand_Queue>
std::atomic< status_t > so_5::disp::reuse::work_thread::details::common_data_t< Demand_Queue >::m_status { status_t::stopped }

Thread status flag.

◆ m_thread_holder

template<typename Demand_Queue>
work_thread_holder_t so_5::disp::reuse::work_thread::details::common_data_t< Demand_Queue >::m_thread_holder

Working thread.

◆ m_thread_id

template<typename Demand_Queue>
so_5::current_thread_id_t so_5::disp::reuse::work_thread::details::common_data_t< Demand_Queue >::m_thread_id

ID of working thread.

Attention
Receive the value only after start of thread body.

The documentation for this struct was generated from the following file: