Contents

struct

SushiEngine::Logging::ThreadRing

Pairs one producer thread's ring with its index and its drop and exit counters.

Declared in
engine/foundation/logging/include/SushiEngine/logging/thread_ring_registry.hpp

Properties

ring

Holds the thread's records.

thread_index

Holds the index the registry assigned, from 0.

owner_thread_id

Identifies the producer thread this ring was created for.

dropped_records

Counts records refused because the ring was full, apart from ring's own hot fields to spare the consumer's cache line a producer write.

abandoned

Records that the producer thread has exited.

Public Methods

ThreadRing

Creates the ring for thread index, owned by owner.