15 #include "oneapi/tbb/task.h" 31 if ((not isEmpty and not
isPaused())
or isTaskChosen) {
32 oneapi::tbb::task_group
g;
34 oneapi::tbb::task::suspend([&
g,
this](oneapi::tbb::task::suspend_point
tag) {
35 push(
g, [
tag]() { oneapi::tbb::task::resume(
tag); });
44 iTask.
group()->run([pTask,
this]() {
46 auto g = pTask->group();
51 if (
t and
t->group() !=
g) {
55 }
while (
t !=
nullptr);
79 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()