Move enum class async_overflow_policy to backend_worker.h

This commit is contained in:
F1F88 2024-12-12 19:34:59 +08:00
parent c77b87fb87
commit 96616e101a
2 changed files with 7 additions and 10 deletions

View File

@ -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;
}

View File

@ -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<backend_worker> {