|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Policy that blocks until space is available. More...
#include <overflow_policies.h>

Public Types | |
| using | policy_tag = overflow_policy_tag |
Public Member Functions | |
| auto | handle_overflow (std::unique_ptr< job > &&value) -> std::pair< common::VoidResult, std::unique_ptr< job > > |
| Handle overflow by indicating need to wait. | |
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 blocks until space is available.
When the queue is full, the enqueue operation blocks until another thread dequeues an item, making space available.
Definition at line 98 of file overflow_policies.h.
Definition at line 100 of file overflow_policies.h.
|
inlinestaticnodiscardconstexprnoexcept |
Check if this policy blocks on overflow.
Definition at line 120 of file overflow_policies.h.
|
inlinenodiscard |
Handle overflow by indicating need to wait.
| value | The job to be added (returned unchanged) |
Definition at line 109 of file overflow_policies.h.
|
inlinestaticnodiscardconstexprnoexcept |
Get a descriptive name for this policy.
Definition at line 128 of file overflow_policies.h.