1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-01-15 17:27:57 +00:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Gabi Melman
8e3b1338a5
Merge pull request #1918 from matt77hias/v1.x
Made mutex member variable mutable
2021-04-22 22:48:29 +03:00
Matthias Moulin
9d3dde0900
Made mutex member variable mutable
Classes inheriting from `base_sink` can now lock the base mutex inside their `const` member methods (e.g., basic accessors).
2021-04-22 21:19:54 +02:00
Gabi Melman
c5abaeddca
Merge pull request #1916 from haifengkao/FixNoNewLineAtEndOfFile
fix Xcode compiler warning "no new line at the end of file"
2021-04-20 22:31:56 +03:00
Hai Feng Kao
ca2cd6f3e7 fix Xcode compiler warning "no new line at the end of file" 2021-04-20 12:43:56 +08:00
5 changed files with 9 additions and 5 deletions

View File

@ -42,4 +42,5 @@ public:
#ifdef SPDLOG_HEADER_ONLY
#include "backtracer-inl.h"
#endif
#endif

View File

@ -21,4 +21,5 @@ struct synchronous_factory
return new_logger;
}
};
} // namespace spdlog
} // namespace spdlog

View File

@ -24,4 +24,5 @@
#else // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib
#include <fmt/core.h>
#include <fmt/format.h>
#endif
#endif

View File

@ -37,7 +37,7 @@ public:
protected:
// sink formatter
std::unique_ptr<spdlog::formatter> formatter_;
Mutex mutex_;
mutable Mutex mutex_;
virtual void sink_it_(const details::log_msg &msg) = 0;
virtual void flush_() = 0;

View File

@ -55,4 +55,5 @@ inline std::shared_ptr<logger> basic_logger_st(const std::string &logger_name, c
#ifdef SPDLOG_HEADER_ONLY
#include "basic_file_sink-inl.h"
#endif
#endif