mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-01 10:59:02 +08:00
async queue - overrun oldsest policy option
This commit is contained in:
@@ -126,8 +126,8 @@ using level_hasher = std::hash<int>;
|
||||
//
|
||||
enum class async_overflow_policy
|
||||
{
|
||||
block_retry, // Block / yield / sleep until message can be enqueued
|
||||
discard_log_msg // Discard the message it enqueue fails
|
||||
block_retry, // Block until message can be enqueued
|
||||
overrun_oldeset // Discard oldest message in the queue if full when trying to add new item.
|
||||
};
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user