|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Policy that allows unlimited queue size. More...
#include <bound_policies.h>

Public Types | |
| using | policy_tag = bound_policy_tag |
Public Member Functions | |
| constexpr | unbounded_policy () noexcept=default |
| Construct unbounded policy. | |
| constexpr auto | is_full (std::size_t) const noexcept -> bool |
| Check if queue is at capacity. | |
| constexpr auto | max_size () const noexcept -> std::optional< std::size_t > |
| Get maximum size. | |
| constexpr auto | remaining_capacity (std::size_t) const noexcept -> std::size_t |
| Get remaining capacity. | |
Static Public Member Functions | |
| static constexpr auto | is_bounded () noexcept -> bool |
| Check if this is a bounded policy. | |
Policy that allows unlimited queue size.
This policy does not impose any size limits on the queue. Memory is the only constraint on queue capacity.
Definition at line 38 of file bound_policies.h.
Definition at line 40 of file bound_policies.h.
|
constexprdefaultnoexcept |
Construct unbounded policy.
|
inlinestaticnodiscardconstexprnoexcept |
Check if this is a bounded policy.
Definition at line 68 of file bound_policies.h.
|
inlinenodiscardconstexprnoexcept |
Check if queue is at capacity.
| current_size | Current queue size |
Definition at line 52 of file bound_policies.h.
|
inlinenodiscardconstexprnoexcept |
Get maximum size.
Definition at line 60 of file bound_policies.h.
|
inlinenodiscardconstexprnoexcept |
Get remaining capacity.
| current_size | Current queue size (ignored) |
Definition at line 77 of file bound_policies.h.