clockUtils
1.1
|
#include <DoubleBufferQueue.h>
Public Member Functions | |
DoubleBufferQueue () | |
default constructor More... | |
void | push (const T &value) |
pushes the given value into the queue More... | |
ClockError | pop () |
removes first entry of the queue More... | |
ClockError | front (T &value) |
returns first entry of the queue, but keeps it in the queue More... | |
ClockError | poll (T &value) |
removes first entry of the queue and returns its value More... | |
bool | empty () const |
returns true if the queue is empty, otherwise false More... | |
size_t | size () const |
returns size of the queue More... | |
void | clear () |
removes all elements in the queue More... | |
class DoubleBufferQueue
T defines the data type being contained in the queue producer tells whether more than one thread pushes data into the queue consumer tells whether more than one thread pulls data from the queue
Definition at line 46 of file DoubleBufferQueue.h.
|
inline |
default constructor
Definition at line 59 of file DoubleBufferQueue.h.
|
inline |
removes all elements in the queue
Definition at line 108 of file DoubleBufferQueue.h.
|
inline |
returns true if the queue is empty, otherwise false
Definition at line 94 of file DoubleBufferQueue.h.
|
inline |
returns first entry of the queue, but keeps it in the queue
Definition at line 80 of file DoubleBufferQueue.h.
|
inline |
removes first entry of the queue and returns its value
Definition at line 87 of file DoubleBufferQueue.h.
|
inline |
removes first entry of the queue
Definition at line 73 of file DoubleBufferQueue.h.
|
inline |
pushes the given value into the queue
Definition at line 65 of file DoubleBufferQueue.h.
|
inline |
returns size of the queue
Definition at line 101 of file DoubleBufferQueue.h.