counters: compact public stats context

pull/14639/head
Victor Julien 8 months ago
parent 711c1193d0
commit cf7a56dd78

@ -90,12 +90,12 @@ typedef struct StatsLocalCounter_ {
* \brief Stats Context for a ThreadVars instance
*/
typedef struct StatsPublicThreadContext_ {
/* flag set by the wakeup thread, to inform the client threads to sync */
SC_ATOMIC_DECLARE(bool, sync_now);
/* pointer to the head of a list of counters assigned under this context */
StatsCounter *head;
/* flag set by the wakeup thread, to inform the client threads to sync */
SC_ATOMIC_DECLARE(bool, sync_now);
/* holds the total no of counters already assigned for this perf context */
uint16_t curr_id;

Loading…
Cancel
Save