Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
Loading...
Searching...
No Matches
overflow_policies.h File Reference

Overflow handling policies: reject, drop-oldest, or block. More...

#include <chrono>
#include <memory>
#include <kcenon/thread/core/error_handling.h>
#include <kcenon/thread/core/job.h>
Include dependency graph for overflow_policies.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kcenon::thread::policies::overflow_policy_tag
 Tag type for overflow policy identification. More...
 
class  kcenon::thread::policies::overflow_reject_policy
 Policy that rejects new items when queue is full. More...
 
class  kcenon::thread::policies::overflow_block_policy
 Policy that blocks until space is available. More...
 
class  kcenon::thread::policies::overflow_drop_oldest_policy
 Policy that drops the oldest item when queue is full. More...
 
class  kcenon::thread::policies::overflow_drop_newest_policy
 Policy that rejects new item when queue is full (same as reject) More...
 
class  kcenon::thread::policies::overflow_timeout_policy
 Policy that blocks for a limited time when queue is full. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::thread
 Core threading foundation of the thread system library.
 
namespace  kcenon::thread::policies
 

Detailed Description

Overflow handling policies: reject, drop-oldest, or block.

See also
policy_queue

Definition in file overflow_policies.h.