Single-consumer multiple-producer concurrent FIFO queue.
More...
#include <concurrentQueue.hpp>
|
std::mutex | mt_ |
| Mutex for synchronization.
|
|
std::queue< T > | queue_ |
| Underlying queue to store objects in.
|
|
template<class T>
class ConcurrentQueue< T >
Single-consumer multiple-producer concurrent FIFO queue.
- Template Parameters
-
◆ ConcurrentQueue()
Construct a new Concurrent Queue object.
◆ ~ConcurrentQueue()
Destroy the Concurrent Queue object.
◆ emplace()
template<class T >
template<typename... Args>
Emplace into queue with std::queue<T>::emplace().
- Template Parameters
-
Args | args to expand into constructor of T |
- Parameters
-
args | args to expand into constructor of T |
◆ empty()
Check if queue is empty. Call this first before trying to pop().
- Returns
- true Queue is empty, do not pop().
-
false Queue is not empty, safe to pop().
◆ pop()
Pop value from queue. Check empty() first!
- Returns
- T Object returned from queue
◆ push()
Insert into queue with std::queue<T>::push().
- Parameters
-
The documentation for this class was generated from the following file: