#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 |
Definition at line 18 of file GteThreadSafeQueue.h.
|
virtual |
Definition at line 39 of file GteThreadSafeQueue.h.
gte::ThreadSafeQueue< Element >::ThreadSafeQueue | ( | size_t | maxNumElements = 0 | ) |
Definition at line 44 of file GteThreadSafeQueue.h.
size_t gte::ThreadSafeQueue< Element >::GetMaxNumElements | ( | ) | const |
Definition at line 51 of file GteThreadSafeQueue.h.
size_t gte::ThreadSafeQueue< Element >::GetNumElements | ( | ) | const |
Definition at line 63 of file GteThreadSafeQueue.h.
bool gte::ThreadSafeQueue< Element >::Pop | ( | Element & | element | ) |
Definition at line 95 of file GteThreadSafeQueue.h.
bool gte::ThreadSafeQueue< Element >::Push | ( | Element const & | element | ) |
Definition at line 75 of file GteThreadSafeQueue.h.
|
protected |
Definition at line 32 of file GteThreadSafeQueue.h.
|
mutableprotected |
Definition at line 34 of file GteThreadSafeQueue.h.
|
protected |
Definition at line 33 of file GteThreadSafeQueue.h.