From eb4f0da97ff7ca4169395e51fa33203aaa236e86 Mon Sep 17 00:00:00 2001 From: Ken Steele Date: Wed, 11 Sep 2013 16:04:11 -0400 Subject: [PATCH] Change one more atomic size in detect.h Change uint16_t to int for better tile atomic performance. Checked with pahole that it doesn't increase the size of the structure. --- src/detect.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect.h b/src/detect.h index 559363b23c..df37f22434 100644 --- a/src/detect.h +++ b/src/detect.h @@ -800,7 +800,7 @@ typedef struct DetectionEngineThreadCtx_ { /** ID of the transaction currently being inspected. */ uint64_t tx_id; - SC_ATOMIC_DECLARE(uint16_t, so_far_used_by_detect); + SC_ATOMIC_DECLARE(int, so_far_used_by_detect); /* holds the current recursion depth on content inspection */ int inspection_recursion_counter;