15 #include "oneapi/tbb/task_group.h" 31 if ((not isEmpty and not
isPaused())
or isTaskChosen) {
32 oneapi::tbb::task_group
g;
33 tbb::task_handle
last{
g.defer([]() {})};
41 iTask.
group()->run([pTask,
this]() {
43 auto g = pTask->group();
48 if (
t and
t->group() !=
g) {
52 }
while (
t !=
nullptr);
76 if LIKELY (
nullptr != iTask) {
TaskBase * pushAndGetNextTask(TaskBase *)
std::atomic< unsigned long > m_pauseCount
void push(oneapi::tbb::task_group &, const T &iAction)
asynchronously pushes functor iAction into queue
void pushTask(TaskBase *)
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
bool resume()
Resumes processing if the queue was paused.
TaskBase * finishedTask()
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
bool isPaused() const
Checks to see if the queue has been paused.
TaskBase * pickNextTask()
std::atomic< bool > m_taskChosen
oneapi::tbb::concurrent_queue< TaskBase * > m_tasks
oneapi::tbb::task_group * group()