threading/threadvars: optimize layout

Make sure StatsPublicThreadContext is on its own cache line.
pull/4531/head
Victor Julien 6 years ago
parent e3fbdf1948
commit 45e5e19e6e

@ -119,6 +119,9 @@ typedef struct ThreadVars_ {
/** private counter store: counter updates modify this */
StatsPrivateThreadContext perf_private_ctx;
/** pointer to the next thread */
struct ThreadVars_ *next;
/** public counter store: counter syncs update this */
StatsPublicThreadContext perf_public_ctx;
@ -127,9 +130,6 @@ typedef struct ThreadVars_ {
SCCtrlMutex *ctrl_mutex;
SCCtrlCondT *ctrl_cond;
/** pointer to the next thread */
struct ThreadVars_ *next;
} ThreadVars;
/** Thread setup flags: */

Loading…
Cancel
Save