diff --git a/include/spdlog/async.h b/include/spdlog/async.h index 3aee06fd..6e22c769 100644 --- a/include/spdlog/async.h +++ b/include/spdlog/async.h @@ -7,11 +7,12 @@ #pragma once // -// async logging using global thread pool -// all loggers created here share same global thread pool. -// each log message is pushed to a queue along withe a shared pointer to the logger. -// If a logger gets out of scope or deleted while having pending messages in the queue, -// it's destruction will defer until all its messages are processed by the thread pool. +// Async logging using global thread pool +// All loggers created here share same global thread pool. +// Each log message is pushed to a queue along withe a shared pointer to the logger. +// If a logger deleted while having pending messages in the queue, it's actual destruction will defer +// until all its messages are processed by the thread pool. +// This is because each message in the queue holds a shared_ptr to the originating logger. #include "async_logger.h" #include "details/registry.h"