Adding lock to rotate_now()

This commit is contained in:
Matteo Del Seppia 2024-12-03 07:19:24 +01:00
parent 65e388e82b
commit 1bea5145b7

View File

@ -71,6 +71,7 @@ SPDLOG_INLINE filename_t rotating_file_sink<Mutex>::filename() {
template <typename Mutex>
SPDLOG_INLINE void rotating_file_sink<Mutex>::rotate_now() {
std::lock_guard<Mutex> lock(base_sink<Mutex>::mutex_);
rotate_();
}