counters: compact public stats context

This commit is contained in:
Victor Julien
2026-01-16 21:07:37 +00:00
parent 711c1193d0
commit cf7a56dd78
+3 -3
View File
@@ -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;