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()) {
WaitingTaskHolder(oneapi::tbb::task_group &iGroup, edm::WaitingTask *iTask) noexcept
void increment_ref_count() noexcept
WaitingTaskHolder & operator=(const WaitingTaskHolder &iRHS) noexcept
std::exception_ptr exceptionPtr() const noexcept
Returns exception thrown by dependent task.
bool hasTask() const noexcept
void swap(Association< C > &lhs, Association< C > &rhs)
void presetTaskAsFailed(std::exception_ptr iExcept) noexcept
oneapi::tbb::task_group * group() const noexcept
~WaitingTaskHolder() noexcept
WaitingTaskHolder(const WaitingTaskHolder &iHolder) noexcept
WaitingTask * release_no_decrement() noexcept
oneapi::tbb::task_group * m_group
bool taskHasFailed() const noexcept
void doneWaiting(std::exception_ptr iExcept) noexcept
WaitingTaskHolder(WaitingTaskHolder &&iOther) noexcept
void dependentTaskFailed(std::exception_ptr iPtr) noexcept
Called if waited for task failed.
WaitingTaskHolder & operator=(WaitingTaskHolder &&iRHS) noexcept