Oakfield API Documentation 1.0.0
Numerical core APIs
Loading...
Searching...
No Matches
SimAsyncLogger Struct Reference

Lock-free ring buffer logger supporting multiple producers and a single consumer. More...

#include <async_logger.h>

Collaboration diagram for SimAsyncLogger:

Public Attributes

SimAsyncLogRecordrecords
 
size_t capacity
 
volatile size_t head
 
volatile size_t tail
 

Detailed Description

Lock-free ring buffer logger supporting multiple producers and a single consumer.

Member Data Documentation

◆ capacity

size_t SimAsyncLogger::capacity

Power-of-two capacity for records.

◆ head

volatile size_t SimAsyncLogger::head

Producer write index (monotonic).

◆ records

SimAsyncLogRecord* SimAsyncLogger::records

Ring buffer storage.

◆ tail

volatile size_t SimAsyncLogger::tail

Consumer read index (monotonic).


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