Added async_nonblocking factory

This commit is contained in:
gabime
2018-07-20 23:20:48 +03:00
parent ddb3002bc1
commit 9cbdd5ffd4
3 changed files with 24 additions and 10 deletions

View File

@@ -23,6 +23,14 @@
#include <string>
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.
};
namespace details {
class thread_pool;
}