Common System 0.2.0
Common interfaces and patterns for system integration
Loading...
Searching...
No Matches
circular_buffer.h File Reference

Thread-safe fixed-capacity circular buffer (SPSC-friendly). More...

#include <array>
#include <atomic>
#include <cstddef>
#include <mutex>
#include <optional>
#include <utility>
Include dependency graph for circular_buffer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kcenon::common::utils::CircularBuffer< T, Capacity >
 Thread-safe fixed-size circular buffer. More...
 
class  kcenon::common::utils::SPSCCircularBuffer< T, Capacity >
 Lock-free circular buffer for single-producer single-consumer (SPSC). More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::common
 Core interfaces.
 
namespace  kcenon::common::utils
 

Detailed Description

Thread-safe fixed-capacity circular buffer (SPSC-friendly).

Provides a mutex-protected ring buffer with optional overwrite-on-full semantics. Useful for bounded logging, event queues, and sliding windows.

Definition in file circular_buffer.h.