-
Notifications
You must be signed in to change notification settings - Fork 4.6k
1.1. Thread Safety
Gabi Melman edited this page Dec 31, 2016
·
26 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 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
)