diff --git a/include/spdlog/async_logger.h b/include/spdlog/async_logger.h index 772555e3..7e26878d 100644 --- a/include/spdlog/async_logger.h +++ b/include/spdlog/async_logger.h @@ -19,14 +19,6 @@ namespace spdlog { -// Async overflow policy - block by default. -enum class async_overflow_policy { - block, // Block until message can be enqueued - 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. -}; - namespace details { class thread_pool; } diff --git a/include/spdlog/details/backend_worker.h b/include/spdlog/details/backend_worker.h index 1bfeef43..3affc3ae 100644 --- a/include/spdlog/details/backend_worker.h +++ b/include/spdlog/details/backend_worker.h @@ -3,11 +3,16 @@ #pragma once - namespace spdlog { +// Async overflow policy - block by default. +enum class async_overflow_policy { + block, // Block until message can be enqueued + 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. +}; namespace details { - class thread_pool; class backend_worker : public std::enable_shared_from_this {