Thread-safe wrapper around STL queue using locking mechanism. More...
#include <concurrent_queue.h>
Public Member Functions | |
bool | Empty () const noexcept |
Indicate whether the queue is empty or not. More... | |
bool | TryEnqueue (T &&element) |
Try to insert an element to the queue via moving. More... | |
bool | TryEnqueue (const T &element) |
Try to insert an element to the queue via copying. More... | |
bool | TryDequeue (T &element) |
Try to peek an element from the queue by removing it. More... | |
Thread-safe wrapper around STL queue using locking mechanism.
T | Queue element type |
|
inlinenoexcept |
Indicate whether the queue is empty or not.
|
inline |
Try to peek an element from the queue by removing it.
[out] | element | Element that is moved out from the queue |
|
inline |
Try to insert an element to the queue via copying.
[in] | element | Element to be moved into the queue |
|
inline |
Try to insert an element to the queue via moving.
[in] | element | Element to be moved into the queue |