Skip to main content

Module engine

Module engine 

Source
Expand description

Ring buffer engine: ingestion, flushing, and the global ENGINE. Near-lock-free ingestion engine backed by a bounded ring buffer.

The global [ENGINE] accepts [LogEvent]s via [LockFreeEngine::ingest()] using only atomic operations. A dedicated background thread drains events in batches of 64 and writes them through PlatformSink.

The Mutex is never locked on the hot path. It exists solely for shutdown() to join the flusher thread.

Structs§

FastSerializer
Zero-Allocation Serializer Helper
LockFreeEngine
The near-lock-free ingestion engine.
LogEvent
A structured log event passed through the ring buffer.

Statics§

ENGINE
Global engine instance, lazily initialized on first access.