m2etis  0.4
m2etis::util::ExceptionQueue Class Reference

Implements a queue that supports multiple producers but only one consumer. More...

#include <ExceptionQueue.h>

Static Public Member Functions

static void enqueue (const loginfo &data)
 Enqueues data. More...
 
static bool isEmpty ()
 Returns true if the queue is empty. More...
 
static loginfo dequeue ()
 Removes the first element in the queue. More...
 

Detailed Description

Implements a queue that supports multiple producers but only one consumer.

Implements a queue that supports multiple producers but only one consumer by using std::mutex.

Definition at line 39 of file ExceptionQueue.h.

Member Function Documentation

static loginfo m2etis::util::ExceptionQueue::dequeue ( )
static

Removes the first element in the queue.

static void m2etis::util::ExceptionQueue::enqueue ( const loginfo data)
static

Enqueues data.

Parameters
[in]dataData to be queued
static bool m2etis::util::ExceptionQueue::isEmpty ( )
static

Returns true if the queue is empty.

Returns
True if the queue is empty

The documentation for this class was generated from the following file: