libUTL++
utl::ConcurrentQueue_mutex< T > Class Template Reference

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...
 

Detailed Description

template<typename T>
class utl::ConcurrentQueue_mutex< T >

utl::ConcurrentQueue that uses mutexes for the producer & consumer locks.

This class was written for testing, and it was left in.

Author
Adam McKee

Definition at line 25 of file ConcurrentQueue_mutex.h.

Constructor & Destructor Documentation

◆ ~ConcurrentQueue_mutex()

template<typename T >
utl::ConcurrentQueue_mutex< T >::~ConcurrentQueue_mutex ( )

Destructor.

Definition at line 82 of file ConcurrentQueue_mutex.h.

Member Function Documentation

◆ enQ()

template<typename T >
void utl::ConcurrentQueue_mutex< T >::enQ ( value)

Queue an object.

Definition at line 96 of file ConcurrentQueue_mutex.h.

◆ deQ()

template<typename T >
bool utl::ConcurrentQueue_mutex< T >::deQ ( T &  value)

Dequeue an object.

Definition at line 115 of file ConcurrentQueue_mutex.h.

◆ forEach()

template<typename T >
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.


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