48 tbb::task* returnValue{0};
90 if likely(
nullptr != nextTask) {
91 if likely(nextTask == iTask) {
93 iWait->spawn_and_wait_for_all(*nextTask);
95 tbb::task::spawn(*nextTask);
96 iWait->wait_for_all();
100 iWait->wait_for_all();
tbb::task * finishedTask()
void pushAndWait(const T &iAction)
synchronously pushes functor iAction into queue
std::atomic< unsigned long > m_pauseCount
tbb::task * pushAndGetNextTask(TaskBase *)
void pushTask(TaskBase *)
bool resume()
Resumes processing if the queue was paused.
std::atomic_flag m_taskChosen
TaskBase * pickNextTask()
tbb::concurrent_queue< TaskBase * > m_tasks