diff --git a/include/spdlog/details/mpmc_blocking_q.h b/include/spdlog/details/mpmc_blocking_q.h index 67e3fde8f..af7d12fde 100644 --- a/include/spdlog/details/mpmc_blocking_q.h +++ b/include/spdlog/details/mpmc_blocking_q.h @@ -37,7 +37,7 @@ class mpmc_blocking_queue { 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) { { std::unique_lock lock(queue_mutex_); diff --git a/include/spdlog/sinks/async_sink.h b/include/spdlog/sinks/async_sink.h index 1420555b0..683cb6cb9 100644 --- a/include/spdlog/sinks/async_sink.h +++ b/include/spdlog/sinks/async_sink.h @@ -26,10 +26,9 @@ class async_sink final : public dist_sink { // Async overflow policy - block by default. enum class overflow_policy : std::uint8_t { - block, // Block until message can be enqueued (default - overrun_oldest, // Discard oldest message in the queue if full when trying to - // add new item. - discard_new // Discard new message if the queue is full when trying to add new item. + block, // Block until the log message can be enqueued (default). + overrun_oldest, // Overrun the oldest message in the queue if full. + discard_new // Discard the log message if the queue is full }; explicit async_sink(size_t queue_size = default_queue_size) {