libUTL++
|
Thread-safe queue structure. More...
#include <ConcurrentQueue.h>
Public Member Functions | |
ConcurrentQueue () | |
Constructor. | |
~ConcurrentQueue () | |
Destructor. More... | |
void | enQ (T value) |
Queue an object. More... | |
bool | deQ (T &value) |
Dequeue an object. More... | |
void | forEach (std::function< void(T)> f) const |
Execute the given function on each contained item (not thread-safe!). More... | |
Thread-safe queue structure.
Definition at line 19 of file ConcurrentQueue.h.
utl::ConcurrentQueue< T >::~ConcurrentQueue | ( | ) |
Destructor.
Definition at line 80 of file ConcurrentQueue.h.
void utl::ConcurrentQueue< T >::enQ | ( | T | value | ) |
Queue an object.
Definition at line 94 of file ConcurrentQueue.h.
bool utl::ConcurrentQueue< T >::deQ | ( | T & | value | ) |
Dequeue an object.
Definition at line 118 of file ConcurrentQueue.h.
void utl::ConcurrentQueue< T >::forEach | ( | std::function< void(T)> | f | ) | const |
Execute the given function on each contained item (not thread-safe!).
Definition at line 156 of file ConcurrentQueue.h.