28 #include <condition_variable> 30 #include <ealogger/logmessage.h> 61 void push(std::shared_ptr<LogMessage> m);
66 std::shared_ptr<LogMessage>
pop();
76 std::queue<std::shared_ptr<LogMessage>> msg_queue;
81 std::condition_variable cond_var_queue;
bool empty()
Check if the Queue is empty.
Definition: logqueue.cpp:46
LogQueue()
LogQueue constructor.
Definition: logqueue.cpp:20
Main namespace for ealogger.
Definition: conversion_pattern.h:28
void push(std::shared_ptr< LogMessage > m)
Push LogMessage in the Queue.
Definition: logqueue.cpp:21
The LogQueue class represents a threadsafe queue ealogger uses to store log messages.
Definition: logqueue.h:49
std::shared_ptr< LogMessage > pop()
Get the next LogMessage object in the Queue and remove it.
Definition: logqueue.cpp:30