3#include <moodycamel/blockingconcurrentqueue.h>
39 template<std::input_iterator Iterator>
40 void enqueueBulk(Iterator firstItem, std::size_t numItems);
64 template<std::output_iterator<T> Iterator>
65 std::size_t
waitDequeueBulk(Iterator out_firstItem, std::size_t numItems);
79 moodycamel::BlockingConcurrentQueue<T> m_queue;
Blockable version of the TAtomicQuasiQueue. For single-thread uses, it is a FIFO queue....
Definition TBlockableAtomicQuasiQueue.h:22
bool tryEnqueue(U &&item)
Try to enqueue an item. Never allocate memory.
Definition TBlockableAtomicQuasiQueue.ipp:45
void enqueueBulk(Iterator firstItem, std::size_t numItems)
Enqueue multiple items at once. Similar to enqueue(1). Use std::make_move_iterator if the items shoul...
Definition TBlockableAtomicQuasiQueue.ipp:34
void waitDequeue(T *out_item)
Blocks the current thread until there is something to dequeue.
Definition TBlockableAtomicQuasiQueue.ipp:58
TBlockableAtomicQuasiQueue()
Definition TBlockableAtomicQuasiQueue.ipp:12
void enqueue(U &&item)
Enqueue an item. Allocate memory if required. Basic aquire-release semantics are guaranteed....
Definition TBlockableAtomicQuasiQueue.ipp:23
bool tryDequeue(T *out_item)
Try to dequeue an item. While there is no contention, dequeue fails if there is no item or the memory...
Definition TBlockableAtomicQuasiQueue.ipp:51
std::size_t estimatedSize() const
Approximated size of the queue.
Definition TBlockableAtomicQuasiQueue.ipp:72
std::size_t waitDequeueBulk(Iterator out_firstItem, std::size_t numItems)
Definition TBlockableAtomicQuasiQueue.ipp:66
The root for all renderer implementations.
Definition EEngineProject.h:6