aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-01-13 15:42:13 +0100
committerGitHub Enterprise <[email protected]>2026-01-13 15:42:13 +0100
commite87d05d8b6d66e1138789afe37a340341a9653cc (patch)
treecef4f3b36e9d0299c62c0577317d4c4c28a211da /src/zenutil/include
parent5.7.16-pre1 (diff)
downloadzen-e87d05d8b6d66e1138789afe37a340341a9653cc.tar.xz
zen-e87d05d8b6d66e1138789afe37a340341a9653cc.zip
minor fixes (#708)
* remove unreferenced local in projectstore_cmd * fix minor atomic memory issue in RotatingFileSink
Diffstat (limited to 'src/zenutil/include')
-rw-r--r--src/zenutil/include/zenutil/logging/rotatingfilesink.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zenutil/include/zenutil/logging/rotatingfilesink.h b/src/zenutil/include/zenutil/logging/rotatingfilesink.h
index 4d10f3794..8901b7779 100644
--- a/src/zenutil/include/zenutil/logging/rotatingfilesink.h
+++ b/src/zenutil/include/zenutil/logging/rotatingfilesink.h
@@ -11,6 +11,7 @@ ZEN_THIRD_PARTY_INCLUDES_START
#include <spdlog/sinks/sink.h>
ZEN_THIRD_PARTY_INCLUDES_END
+#include <atomic>
#include <filesystem>
namespace zen::logging {
@@ -248,7 +249,7 @@ private:
const std::size_t m_MaxSize;
const std::size_t m_MaxFiles;
BasicFile m_CurrentFile;
- bool m_NeedFlush = false;
+ std::atomic<bool> m_NeedFlush = false;
};
} // namespace zen::logging