-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Thread Safety
Gabi Melman edited this page Dec 31, 2016
·
3 revisions
The functions under spdlog:: are thread safe, but the following should not be called while loggers in other threads are running:
void spdlog::set_pattern(const std::string&);
void spdlog::set_formatter(formatter_ptr);
void spdlog::set_error_handler(log_err_handler);Logger objects are thread safe except for the following methods (should not be called by concurrently on same instance):
void spdlog::logger::set_pattern(const std::string&);
void spdlog::logger::set_formatter(formatter_ptr);
void spdlog::set_error_handler(log_err_handler);-
Thread safe sinks: sinks ending with
_mt(e.gdaily_file_sink_mt) -
Non thread safe sinks: sinks ending with
_st(e.gdaily_file_sink_st)
©gabime 2023-2024 spdlog. All Rights Reserved.