#define ONIXS_FIXENGINE_API
ThreadSafeQueueResult::Enum dequeue(ItemBaseUniquePtr &dequeueItem, const int waitInMs=InfiniteTimeout)
Tries to get an item from the queue during the timeout.
void signal()
Wakes up the queue if it was in the waiting mode.
void enqueue(ItemBaseUniquePtr &enqueueItem)
Adds an item to the queue.
bool empty() const
Returns 'true' if the queue is empty, otherwise 'false'.
ThreadSafeQueue()
Initializes the instance.
~ThreadSafeQueue()
Cleans up enqueued elements and internal resources.
void clear()
Removes all elements from the queue.
PtrTraits< ItemBase >::UniquePtr ItemBaseUniquePtr
@ Timeout
No data during the timeout.
@ Data
We get data immediately or after waiting during the timeout.