From 7b1aeee4565fe0a2eed4a4fa8695b2a5fb671e06 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 17 May 2026 14:32:11 +0100 Subject: Add ThreadSafeT helper Wraps a templated value and a templated mutex (defaults to shared_mutex) and provides safe access, locked with either a shared_lock (const value) or lock_guard (non-const value). Applies this to existingEntities. --- src/ingestor.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ingestor.hpp') diff --git a/src/ingestor.hpp b/src/ingestor.hpp index 738357b..c2a47a4 100644 --- a/src/ingestor.hpp +++ b/src/ingestor.hpp @@ -99,7 +99,7 @@ namespace WebStat { DB::ConnectionPoolPtr dbpool; mutable Stats stats {}; - std::map existingEntities; + ThreadSafeT> existingEntities; LineBatch queuedLines, processingLines; bool terminated = false; -- cgit v1.3