mirror of
https://github.com/OISF/suricata.git
synced 2026-10-12 02:07:10 +00:00
counters: compact public stats context
This commit is contained in:
+3
-3
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user