48 tbb::task* returnValue{0};
92 if likely(
nullptr != nextTask) {
93 if likely(nextTask == iTask) {
95 iWait->spawn_and_wait_for_all(*nextTask);
97 tbb::task::spawn(*nextTask);
98 iWait->wait_for_all();
102 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.
TaskBase * pickNextTask()
std::atomic< bool > m_taskChosen
tbb::concurrent_queue< TaskBase * > m_tasks