Commit 7cbf832c authored by gabime's avatar gabime

comments

parent 58b1c2f7
...@@ -190,8 +190,7 @@ inline spdlog::details::async_log_helper::async_log_helper(formatter_ptr formatt ...@@ -190,8 +190,7 @@ inline spdlog::details::async_log_helper::async_log_helper(formatter_ptr formatt
_worker_thread = std::thread(&async_log_helper::worker_loop, this); _worker_thread = std::thread(&async_log_helper::worker_loop, this);
} }
// Send to the worker thread termination message(level=off) // send to the worker thread terminate message, and join it.
// and wait for it to finish gracefully
inline spdlog::details::async_log_helper::~async_log_helper() inline spdlog::details::async_log_helper::~async_log_helper()
{ {
try try
...@@ -204,7 +203,7 @@ inline spdlog::details::async_log_helper::~async_log_helper() ...@@ -204,7 +203,7 @@ inline spdlog::details::async_log_helper::~async_log_helper()
} }
} }
// Try to push and block until succeeded (if the policy is not to discard when the queue is full) // try to push and block until succeeded (if the policy is not to discard when the queue is full)
inline void spdlog::details::async_log_helper::log(const details::log_msg &msg) inline void spdlog::details::async_log_helper::log(const details::log_msg &msg)
{ {
enqueue_msg(async_msg(msg), _overflow_policy); enqueue_msg(async_msg(msg), _overflow_policy);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment