Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::queue_overflow_error Class Reference

Exception thrown when the task queue exceeds its hard limit. More...

#include <thread_pool.H>

Inheritance diagram for Aleph::queue_overflow_error:
[legend]
Collaboration diagram for Aleph::queue_overflow_error:
[legend]

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_
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ queue_overflow_error()

Aleph::queue_overflow_error::queue_overflow_error ( size_t  current_size,
size_t  hard_limit 
)
inlineexplicit

Definition at line 142 of file thread_pool.H.

Member Function Documentation

◆ current_size()

size_t Aleph::queue_overflow_error::current_size ( ) const
inlinenoexcept

Current queue size when exception was thrown.

Definition at line 149 of file thread_pool.H.

References current_size_.

Referenced by TEST_F().

◆ hard_limit()

size_t Aleph::queue_overflow_error::hard_limit ( ) const
inlinenoexcept

Hard limit that was exceeded.

Definition at line 152 of file thread_pool.H.

References hard_limit_.

Referenced by TEST_F().

Member Data Documentation

◆ current_size_

size_t Aleph::queue_overflow_error::current_size_
private

Definition at line 155 of file thread_pool.H.

Referenced by current_size().

◆ hard_limit_

size_t Aleph::queue_overflow_error::hard_limit_
private

Definition at line 156 of file thread_pool.H.

Referenced by hard_limit().


The documentation for this class was generated from the following file: