LogIt++
Header-only, macro-first C++ logging library
Loading...
Searching...
No Matches
QueuePolicy.hpp
Go to the documentation of this file.
1#pragma once
2#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_QUEUEPOLICY_HPP_INCLUDED
3#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_QUEUEPOLICY_HPP_INCLUDED
4
5namespace logit { namespace detail {
6
8enum class QueuePolicy {
12 Block
13};
14
15}} // namespace logit::detail
16
17#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_DETAIL_QUEUEPOLICY_HPP_INCLUDED
QueuePolicy
Queue overflow handling policy used by TaskExecutor and SingleThreadExecutor.
@ Block
Producers wait until capacity is available.
@ DropOldest
Drop-oldest policy; MPSC mode rejects the incoming task to preserve the ordering of already accepted ...
@ DropNewest
Reject the incoming task when the queue is full.
The primary namespace for the LogIt++ library.