libUTL++
|
utl::ConcurrentQueue that uses mutexes for the producer & consumer locks. More...
#include <ConcurrentQueue_mutex.h>
Public Member Functions | |
ConcurrentQueue_mutex () | |
Constructor. | |
~ConcurrentQueue_mutex () | |
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... | |
utl::ConcurrentQueue that uses mutexes for the producer & consumer locks.
This class was written for testing, and it was left in.
Definition at line 25 of file ConcurrentQueue_mutex.h.
utl::ConcurrentQueue_mutex< T >::~ConcurrentQueue_mutex | ( | ) |
Destructor.
Definition at line 82 of file ConcurrentQueue_mutex.h.
void utl::ConcurrentQueue_mutex< T >::enQ | ( | T | value | ) |
Queue an object.
Definition at line 96 of file ConcurrentQueue_mutex.h.
bool utl::ConcurrentQueue_mutex< T >::deQ | ( | T & | value | ) |
Dequeue an object.
Definition at line 115 of file ConcurrentQueue_mutex.h.
void utl::ConcurrentQueue_mutex< T >::forEach | ( | std::function< void(T)> | f | ) | const |
Execute the given function on each contained item (not thread-safe!).
Definition at line 147 of file ConcurrentQueue_mutex.h.