clockUtils
1.1
|
#include <LockFreeQueue.h>
Public Member Functions | |
LockFreeQueue () | |
default constructor More... | |
ClockError | 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 LockFreeQueue
T defines the data type being contained in the queue size defines the maximum amount of entries this queue has space for
Definition at line 46 of file LockFreeQueue.h.
|
inline |
default constructor
Definition at line 51 of file LockFreeQueue.h.
|
inline |
removes all elements in the queue
Definition at line 164 of file LockFreeQueue.h.
|
inline |
returns true if the queue is empty, otherwise false
Definition at line 146 of file LockFreeQueue.h.
|
inline |
returns first entry of the queue, but keeps it in the queue
Definition at line 101 of file LockFreeQueue.h.
|
inline |
removes first entry of the queue and returns its value
Definition at line 123 of file LockFreeQueue.h.
|
inline |
removes first entry of the queue
Definition at line 80 of file LockFreeQueue.h.
|
inline |
pushes the given value into the queue
Definition at line 57 of file LockFreeQueue.h.
|
inline |
returns size of the queue
Definition at line 155 of file LockFreeQueue.h.