mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-26 15:39:03 +08:00
Updated comments
This commit is contained in:
parent
43998c07f9
commit
01ef17ef45
@ -37,7 +37,7 @@ public:
|
|||||||
push_cv_.notify_one();
|
push_cv_.notify_one();
|
||||||
}
|
}
|
||||||
|
|
||||||
// enqueue immediately. overrun oldest message in the queue if no room left.
|
// enqueue immediately. overrun the oldest message in the queue if no room left.
|
||||||
void enqueue_nowait(T &&item) {
|
void enqueue_nowait(T &&item) {
|
||||||
{
|
{
|
||||||
std::unique_lock<std::mutex> lock(queue_mutex_);
|
std::unique_lock<std::mutex> lock(queue_mutex_);
|
||||||
|
@ -26,10 +26,9 @@ public:
|
|||||||
|
|
||||||
// Async overflow policy - block by default.
|
// Async overflow policy - block by default.
|
||||||
enum class overflow_policy : std::uint8_t {
|
enum class overflow_policy : std::uint8_t {
|
||||||
block, // Block until message can be enqueued (default
|
block, // Block until the log message can be enqueued (default).
|
||||||
overrun_oldest, // Discard oldest message in the queue if full when trying to
|
overrun_oldest, // Overrun the oldest message in the queue if full.
|
||||||
// add new item.
|
discard_new // Discard the log message if the queue is full
|
||||||
discard_new // Discard new message if the queue is full when trying to add new item.
|
|
||||||
};
|
};
|
||||||
|
|
||||||
explicit async_sink(size_t queue_size = default_queue_size) {
|
explicit async_sink(size_t queue_size = default_queue_size) {
|
||||||
|
Loading…
Reference in New Issue
Block a user