1 #ifndef FWCore_Concurrency_WaitingTaskHolder_h 2 #define FWCore_Concurrency_WaitingTaskHolder_h 23 #include "oneapi/tbb/task_group.h" 54 iOther.m_task =
nullptr;
104 if (0 ==
task->decrement_ref_count()) {
bool hasTask() const noexcept
void presetTaskAsFailed(std::exception_ptr iExcept)
WaitingTaskHolder & operator=(const WaitingTaskHolder &iRHS)
void swap(Association< C > &lhs, Association< C > &rhs)
WaitingTaskHolder(WaitingTaskHolder &&iOther)
void dependentTaskFailed(std::exception_ptr iPtr)
Called if waited for task failed.
oneapi::tbb::task_group * group() const noexcept
std::exception_ptr exceptionPtr() const
Returns exception thrown by dependent task.
WaitingTask * release_no_decrement() noexcept
void doneWaiting(std::exception_ptr iExcept)
oneapi::tbb::task_group * m_group
bool taskHasFailed() const noexcept
WaitingTaskHolder(const WaitingTaskHolder &iHolder)
WaitingTaskHolder(oneapi::tbb::task_group &iGroup, edm::WaitingTask *iTask)
void increment_ref_count()
WaitingTaskHolder & operator=(WaitingTaskHolder &&iRHS)