Base class for the task to be executed by the serial queue.
tbb::concurrent_queue< SerialWorkItem * > m_queue
Queue of the tasks to be executed.
Wrapper for the WorkItem class for internal concurrency bookkeeping.
SerialTaskQueue()
Default constructor.
void wait() const
Block until all the currently enqueued tasks are completed.
virtual ~SerialTaskQueue()
Block until all the enqueued tasks are completed.
void add(WorkItem *item)
Enqueue a WorkItem for execution.
Helper class to wrap a SerialWorkItem in a tbb::task.
void noteCompletion()
Method used by the tasks to trigger the execution of the next task in the queue.
Header file for std:chrono::duration-based Counters.
std::atomic< int > m_count
Counter of the currently running tasks.