diff --git a/include/spdlog/sinks/async_sink.h b/include/spdlog/sinks/async_sink.h index d6f2e99e..30fa744f 100644 --- a/include/spdlog/sinks/async_sink.h +++ b/include/spdlog/sinks/async_sink.h @@ -59,7 +59,7 @@ private: void sink_it_(const details::log_msg &msg) override; void flush_() override; void send_message_(async_log_msg::type msg_type, const details::log_msg &msg); - void worker_loop(); + void backend_loop_(); std::atomic overflow_policy_ = overflow_policy::block; std::unique_ptr q_; diff --git a/src/sinks/async_sink.cpp b/src/sinks/async_sink.cpp index 3361688b..d47f6983 100644 --- a/src/sinks/async_sink.cpp +++ b/src/sinks/async_sink.cpp @@ -26,7 +26,7 @@ async_sink::async_sink(size_t queue_size, std::function on_thread worker_thread_ = std::thread([this, on_thread_start, on_thread_stop] { if (on_thread_start) on_thread_start(); - this->worker_loop(); + this->backend_loop_(); if (on_thread_stop) on_thread_stop(); }); } @@ -112,7 +112,7 @@ void async_sink::send_message_(async_log_msg::type msg_type, const detail } template -void async_sink::worker_loop() { +void async_sink::backend_loop_() { details::async_log_msg incoming_msg; for (;;) { q_->dequeue(incoming_msg);