|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Policy that rejects new items when queue is full. 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 rejecting the new item. | |
Static Public Member Functions | |
| static constexpr auto | blocks () noexcept -> bool |
| Check if this policy blocks on overflow. | |
| static constexpr auto | name () noexcept -> const char * |
| Get a descriptive name for this policy. | |
Policy that rejects new items when queue is full.
When the queue is full, enqueue operations immediately fail with an error. The new item is not added to the queue.
Definition at line 48 of file overflow_policies.h.
Definition at line 50 of file overflow_policies.h.
|
inlinestaticnodiscardconstexprnoexcept |
Check if this policy blocks on overflow.
Definition at line 66 of file overflow_policies.h.
|
inlinenodiscard |
Handle overflow by rejecting the new item.
| value | The job that would be added (will be dropped) |
Definition at line 57 of file overflow_policies.h.
|
inlinestaticnodiscardconstexprnoexcept |
Get a descriptive name for this policy.
Definition at line 74 of file overflow_policies.h.