shm_main_info Struct Reference

The SHM info. More...

#include <shm_main.h>

Data Fields

struct ub_stats_infoptr_arr
 stats_info array, shared memory segment.
 
struct ub_shm_stat_infoptr_ctl
 the global stats block, shared memory segment
 
int key
 
int id_ctl
 
int id_arr
 
lock_basic_type lock
 This mutex is on the volley information.
 
int volley_in_progress
 If there is a volley, a number of stat timer callbacks by the threads, in progress.
 
int * thread_volley
 Per thread, if they have put in stats.
 
struct ub_stats_info total_in_progress
 The total stats of the thread stat timers, it is in progress.
 

Detailed Description

The SHM info.

Field Documentation

◆ ptr_arr

struct ub_stats_info* shm_main_info::ptr_arr

stats_info array, shared memory segment.

[0] is totals, [1..thread_num] are per-thread stats

◆ volley_in_progress

int shm_main_info::volley_in_progress

If there is a volley, a number of stat timer callbacks by the threads, in progress.

If not, there is no volley in progress and the previous stat run has terminated succesfully for all threads. Usually activated by the first thread and deactivated by the last thread that starts its stat callback.

◆ thread_volley

int* shm_main_info::thread_volley

Per thread, if they have put in stats.

0 if not.


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