i6engine
1.0
|
Implements a queue that supports multiple producers but only one consumer. More...
#include <D:/Projekte/i6engine/libs/i6engine-utils/include/i6engine/utils/ExceptionQueue.h>
Public Member Functions | |
void | enqueue (const loginfo &data) |
Enqueues data. More... | |
bool | isEmpty () const |
Returns true if the queue is empty. More... | |
loginfo | dequeue () |
Removes the first element in the queue. More... | |
void | addCallback (const std::function< void(void)> &callback) |
add callback to queue being called when a new entry is pushed More... | |
Friends | |
class | Singleton< ExceptionQueue > |
Additional Inherited Members | |
Static Public Member Functions inherited from i6e::utils::Singleton< T, Dependencies > | |
static T * | GetSingletonPtr () |
Returns a pointer to the Singleton class. More... | |
static T & | GetSingleton () |
Returns a reference to the Singleton class. More... | |
Protected Member Functions inherited from i6e::utils::Singleton< T, Dependencies > | |
Singleton () | |
virtual | ~Singleton () |
Implements a queue that supports multiple producers but only one consumer.
Implements a queue that supports multiple producers but only one consumer for exceptions.
Definition at line 46 of file ExceptionQueue.h.
void i6e::utils::exceptions::ExceptionQueue::addCallback | ( | const std::function< void(void)> & | callback | ) |
add callback to queue being called when a new entry is pushed
loginfo i6e::utils::exceptions::ExceptionQueue::dequeue | ( | ) |
Removes the first element in the queue.
void i6e::utils::exceptions::ExceptionQueue::enqueue | ( | const loginfo & | data | ) |
Enqueues data.
[in] | data | Data to be queued |
bool i6e::utils::exceptions::ExceptionQueue::isEmpty | ( | ) | const |
Returns true if the queue is empty.
|
friend |
Definition at line 47 of file ExceptionQueue.h.