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

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

Detailed Description

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

Thread-safe queue structure.

Author
Adam McKee

Definition at line 19 of file ConcurrentQueue.h.

Constructor & Destructor Documentation

◆ ~ConcurrentQueue()

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

Destructor.

Definition at line 80 of file ConcurrentQueue.h.

Member Function Documentation

◆ enQ()

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

Queue an object.

Definition at line 94 of file ConcurrentQueue.h.

◆ deQ()

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

Dequeue an object.

Definition at line 118 of file ConcurrentQueue.h.

◆ forEach()

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


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