From 0061ac8434730bb8d14f5ece85ab70fdd346cbc2 Mon Sep 17 00:00:00 2001 From: tigercoding56 <90169211+tigercoding56@users.noreply.github.com> Date: Fri, 5 Jul 2024 10:54:04 -0700 Subject: [PATCH] Update ThreadUtil.h make data and the other variable (mtx) mutable so make does not throw error --- src/util/ThreadUtil.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/ThreadUtil.h b/src/util/ThreadUtil.h index 0ef29fe..eaa6055 100755 --- a/src/util/ThreadUtil.h +++ b/src/util/ThreadUtil.h @@ -8,8 +8,8 @@ class AtomicWrapper { private: - T* data; - std::mutex* mtx; + mutable T* data; + mutable std::mutex* mtx; public: T& operator*()