Commit 99ca7f1c authored by gabime's avatar gabime

Comments

parent 3e28d9ab
......@@ -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"
......
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