mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-13 17:22:06 +08:00
comments
This commit is contained in:
parent
58b1c2f78d
commit
7cbf832cca
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user