|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Exception thrown when the task queue exceeds its hard limit. More...
#include <thread_pool.H>
Public Member Functions | |
| queue_overflow_error (size_t current_size, size_t hard_limit) | |
| size_t | current_size () const noexcept |
| Current queue size when exception was thrown. | |
| size_t | hard_limit () const noexcept |
| Hard limit that was exceeded. | |
Private Attributes | |
| size_t | current_size_ |
| size_t | hard_limit_ |
Exception thrown when the task queue exceeds its hard limit.
This exception is thrown by enqueue_bounded() when the queue size reaches the hard limit, indicating potential memory exhaustion.
Definition at line 139 of file thread_pool.H.
|
inlineexplicit |
Definition at line 142 of file thread_pool.H.
|
inlinenoexcept |
Current queue size when exception was thrown.
Definition at line 149 of file thread_pool.H.
References current_size_.
Referenced by TEST_F().
|
inlinenoexcept |
Hard limit that was exceeded.
Definition at line 152 of file thread_pool.H.
References hard_limit_.
Referenced by TEST_F().
|
private |
Definition at line 155 of file thread_pool.H.
Referenced by current_size().
|
private |
Definition at line 156 of file thread_pool.H.
Referenced by hard_limit().