Move enum class async_overflow_policy to backend_worker.h
This commit is contained in:
parent
c77b87fb87
commit
96616e101a
@ -19,14 +19,6 @@
|
|||||||
|
|
||||||
namespace spdlog {
|
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 {
|
namespace details {
|
||||||
class thread_pool;
|
class thread_pool;
|
||||||
}
|
}
|
||||||
|
@ -3,11 +3,16 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
||||||
namespace spdlog {
|
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 {
|
namespace details {
|
||||||
|
|
||||||
class thread_pool;
|
class thread_pool;
|
||||||
|
|
||||||
class backend_worker : public std::enable_shared_from_this<backend_worker> {
|
class backend_worker : public std::enable_shared_from_this<backend_worker> {
|
||||||
|
Loading…
Reference in New Issue
Block a user