Public Member Functions | |
virtual | ~ThreadSafeQueue () |
ThreadSafeQueue (size_t maxNumElements=0) | |
size_t | GetMaxNumElements () const |
size_t | GetNumElements () const |
bool | Push (Element const &element) |
bool | Pop (Element &element) |
Protected Attributes | |
size_t | mMaxNumElements |
std::queue< Element > | mQueue |
std::mutex | mMutex |
Definition at line 21 of file NeThreadSafeQueue.h.
|
virtual |
File: NECore/Threading/ThreadSafeQueue.inl
Author:
Email:
Site:
Copyright (c) 2016 . All rights reserved.
Definition at line 12 of file NeThreadSafeQueue.inl.
ThreadSafeQueue::ThreadSafeQueue | ( | size_t | maxNumElements = 0 | ) |
Definition at line 17 of file NeThreadSafeQueue.inl.
size_t ThreadSafeQueue::GetMaxNumElements | ( | ) | const |
Definition at line 24 of file NeThreadSafeQueue.inl.
size_t ThreadSafeQueue::GetNumElements | ( | ) | const |
Definition at line 36 of file NeThreadSafeQueue.inl.
bool ThreadSafeQueue::Push | ( | Element const & | element | ) |
Definition at line 48 of file NeThreadSafeQueue.inl.
bool ThreadSafeQueue::Pop | ( | Element & | element | ) |
Definition at line 68 of file NeThreadSafeQueue.inl.
|
protected |
Definition at line 35 of file NeThreadSafeQueue.h.
|
protected |
Definition at line 36 of file NeThreadSafeQueue.h.
|
mutableprotected |
Definition at line 37 of file NeThreadSafeQueue.h.