From 822f972842326339af89eedb0277ebe5560a7c1f Mon Sep 17 00:00:00 2001 From: bergen Date: Thu, 9 Jun 2022 19:39:57 +0800 Subject: [PATCH] update --- include/spdlog/details/circular_q.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/spdlog/details/circular_q.h b/include/spdlog/details/circular_q.h index 1f2712e7..e4fd5fd4 100644 --- a/include/spdlog/details/circular_q.h +++ b/include/spdlog/details/circular_q.h @@ -121,6 +121,11 @@ public: return overrun_counter_; } + void reset_overrun_counter() + { + overrun_counter_ = 0; + } + private: // copy from other&& and reset it to disabled state void copy_moveable(circular_q &&other) SPDLOG_NOEXCEPT