MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ scribe_rt()

void MayaFlux::Journal::Archivist::Impl::scribe_rt ( Severity  severity,
Component  component,
Context  context,
std::string_view  message,
std::source_location  location 
)
inline

Definition at line 99 of file Archivist.cpp.

100 {
101 if (!should_log(severity, component)) {
102 return;
103 }
104
105 RealtimeEntry entry(severity, component, context, message, location);
106
107 if (!m_ring_buffer.try_push(entry)) {
108 m_dropped_messages.fetch_add(1, std::memory_order_relaxed);
109 }
110 }
bool should_log(Severity severity, Component component) const
RingBuffer< RealtimeEntry, RING_BUFFER_SIZE > m_ring_buffer
std::atomic< uint64_t > m_dropped_messages

References m_dropped_messages, m_ring_buffer, and should_log().

+ Here is the call graph for this function: