Public Member Functions | Protected Attributes | List of all members
gte::ThreadSafeQueue< Element > Class Template Reference

#include <GteThreadSafeQueue.h>

Public Member Functions

size_t GetMaxNumElements () const
 
size_t GetNumElements () const
 
bool Pop (Element &element)
 
bool Push (Element const &element)
 
 ThreadSafeQueue (size_t maxNumElements=0)
 
virtual ~ThreadSafeQueue ()
 

Protected Attributes

size_t mMaxNumElements
 
std::mutex mMutex
 
std::queue< Element > mQueue
 

Detailed Description

template<typename Element>
class gte::ThreadSafeQueue< Element >

Definition at line 18 of file GteThreadSafeQueue.h.

Constructor & Destructor Documentation

template<typename Element >
gte::ThreadSafeQueue< Element >::~ThreadSafeQueue ( )
virtual

Definition at line 39 of file GteThreadSafeQueue.h.

template<typename Element >
gte::ThreadSafeQueue< Element >::ThreadSafeQueue ( size_t  maxNumElements = 0)

Definition at line 44 of file GteThreadSafeQueue.h.

Member Function Documentation

template<typename Element >
size_t gte::ThreadSafeQueue< Element >::GetMaxNumElements ( ) const

Definition at line 51 of file GteThreadSafeQueue.h.

template<typename Element >
size_t gte::ThreadSafeQueue< Element >::GetNumElements ( ) const

Definition at line 63 of file GteThreadSafeQueue.h.

template<typename Element >
bool gte::ThreadSafeQueue< Element >::Pop ( Element &  element)

Definition at line 95 of file GteThreadSafeQueue.h.

template<typename Element >
bool gte::ThreadSafeQueue< Element >::Push ( Element const &  element)

Definition at line 75 of file GteThreadSafeQueue.h.

Member Data Documentation

template<typename Element >
size_t gte::ThreadSafeQueue< Element >::mMaxNumElements
protected

Definition at line 32 of file GteThreadSafeQueue.h.

template<typename Element >
std::mutex gte::ThreadSafeQueue< Element >::mMutex
mutableprotected

Definition at line 34 of file GteThreadSafeQueue.h.

template<typename Element >
std::queue<Element> gte::ThreadSafeQueue< Element >::mQueue
protected

Definition at line 33 of file GteThreadSafeQueue.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:07