Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgabime <gmelman1@gmail.com>2018-05-20 18:30:42 +0300
committergabime <gmelman1@gmail.com>2018-05-20 18:30:42 +0300
commit7cbf832cca443b77c3b2b855c55012b66e08df73 (patch)
treea0947de818a43574dd4eb54efd632fbb5118d2b0
parent58b1c2f78dab0434bce4e707962a17afcfd536f9 (diff)
comments
-rw-r--r--include/spdlog/details/async_log_helper.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/spdlog/details/async_log_helper.h b/include/spdlog/details/async_log_helper.h
index 5c351055..ac435205 100644
--- a/include/spdlog/details/async_log_helper.h
+++ b/include/spdlog/details/async_log_helper.h
@@ -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);
}
-// Send to the worker thread termination message(level=off)
-// and wait for it to finish gracefully
+// send to the worker thread terminate message, and join it.
inline spdlog::details::async_log_helper::~async_log_helper()
{
try
@@ -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)
{
enqueue_msg(async_msg(msg), _overflow_policy);