MayaFlux 0.4.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 91 of file Archivist.cpp.

92 {
93 if (!should_log(severity, component, context)) {
94 return;
95 }
96
97 RealtimeEntry entry(severity, component, context, message, location);
98 if (!m_ring_buffer.push(entry)) {
99 m_dropped_messages.fetch_add(1, std::memory_order_relaxed);
100 }
101 }
std::string severity
Definition Config.cpp:16
bool should_log(Severity severity, Component component, Context context) const
Memory::LockFreeQueue< RealtimeEntry, RING_BUFFER_SIZE > m_ring_buffer
std::atomic< uint64_t > m_dropped_messages

References m_dropped_messages, m_ring_buffer, severity, and should_log().

+ Here is the call graph for this function: