|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Policy that rejects new item when queue is full (same as reject) More...
#include <overflow_policies.h>

Public Types | |
| using | policy_tag = overflow_policy_tag |
Public Member Functions | |
| auto | handle_overflow (std::unique_ptr< job > &&) -> common::VoidResult |
| Handle overflow by dropping the new item silently. | |
Static Public Member Functions | |
| static constexpr auto | blocks () noexcept -> bool |
| Check if this policy blocks on overflow. | |
| static constexpr auto | drops_newest () noexcept -> bool |
| Check if this policy drops items on overflow. | |
| static constexpr auto | name () noexcept -> const char * |
| Get a descriptive name for this policy. | |
Policy that rejects new item when queue is full (same as reject)
When the queue is full, the new item is dropped instead of being added. This is semantically equivalent to overflow_reject_policy but with different naming convention for clarity in some contexts.
Definition at line 207 of file overflow_policies.h.
Definition at line 209 of file overflow_policies.h.
|
inlinestaticnodiscardconstexprnoexcept |
Check if this policy blocks on overflow.
Definition at line 226 of file overflow_policies.h.
|
inlinestaticnodiscardconstexprnoexcept |
Check if this policy drops items on overflow.
Definition at line 234 of file overflow_policies.h.
|
inlinenodiscard |
Handle overflow by dropping the new item silently.
| value | The job that would be added (will be dropped) |
Definition at line 216 of file overflow_policies.h.
|
inlinestaticnodiscardconstexprnoexcept |
Get a descriptive name for this policy.
Definition at line 242 of file overflow_policies.h.