Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
Loading...
Searching...
No Matches
corium::DropOldestOverflowPolicy Struct Reference

Overflow Policy: Evict oldest event in queue to make room for the new event. Ideal for high-frequency telemetry and sensor data where newest reading is critical. More...

#include <OverflowPolicies.hpp>

+ Collaboration diagram for corium::DropOldestOverflowPolicy:

Public Member Functions

template<typename QueuePolicy , typename EventVariant >
bool handleOverflow (QueuePolicy &queue, EventVariant &&event, EventPriority priority=EventPriority::Normal)
 

Detailed Description

Overflow Policy: Evict oldest event in queue to make room for the new event. Ideal for high-frequency telemetry and sensor data where newest reading is critical.

Member Function Documentation

◆ handleOverflow()

template<typename QueuePolicy , typename EventVariant >
bool corium::DropOldestOverflowPolicy::handleOverflow ( QueuePolicy &  queue,
EventVariant &&  event,
EventPriority  priority = EventPriority::Normal 
)
inline

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