SObjectizer
5.7
|
Part of implementation of work thread with activity tracking. More...
#include <work_thread.hpp>
Public Member Functions | |
activity_tracking_impl_t (work_thread_holder_t thread_holder, queue_traits::lock_factory_t queue_lock_factory) | |
so_5::stats::work_thread_activity_stats_t | take_activity_stats () |
Get the activity stats. More... | |
Protected Member Functions | |
void | serve_demands_block (demand_container_t &demands) |
Main method for serving block of demands. More... | |
Protected Member Functions inherited from so_5::disp::reuse::work_thread::details::common_data_t< demand_queue_with_activity_tracking_t > | |
common_data_t (work_thread_holder_t thread_holder, queue_traits::lock_factory_t queue_lock_factory) | |
Private Types | |
using | activity_tracking_traits = so_5::stats::activity_tracking_stuff::traits |
Private Attributes | |
activity_tracking_traits::lock_t | m_stats_lock |
Lock for manipulation of activity stats. More... | |
const so_5::stats::clock_type_t::time_point * | m_activity_started_at {} |
Pointer to time_point object related to the current activity. More... | |
so_5::stats::activity_stats_t | m_activity_stats {} |
Activity statistics. More... | |
Additional Inherited Members | |
Protected Attributes inherited from so_5::disp::reuse::work_thread::details::common_data_t< demand_queue_with_activity_tracking_t > | |
work_thread_holder_t | m_thread_holder |
Working thread. More... | |
std::atomic< status_t > | m_status |
Thread status flag. More... | |
demand_queue_with_activity_tracking_t | 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 |
A counter for calculating count of demands in the queue. More... | |
Part of implementation of work thread with activity tracking.
|
private |
|
inline |
|
inlineprotected |
Main method for serving block of demands.
demands | Bunch of demands to be processed. |
|
inline |
Get the activity stats.
|
private |
Pointer to time_point object related to the current activity.
Value nullptr means that there is no any event running on the work thread.
|
private |
Activity statistics.
|
private |
Lock for manipulation of activity stats.