#include <WaitingTask.h>
Public Member Functions | |
std::exception_ptr const * | exceptionPtr () const |
Returns exception thrown by dependent task. More... | |
WaitingTask () | |
Constructor. More... | |
~WaitingTask () override | |
Private Member Functions | |
void | dependentTaskFailed (std::exception_ptr iPtr) |
Called if waited for task failed. More... | |
Private Attributes | |
std::atomic< std::exception_ptr * > | m_ptr |
Friends | |
class | WaitingTaskHolder |
class | WaitingTaskList |
Definition at line 35 of file WaitingTask.h.
|
inline |
|
inlineoverride |
|
inlineprivate |
Called if waited for task failed.
Allows transfer of the exception caused by the dependent task to be moved to another thread. This method should only be called by WaitingTaskList
Definition at line 62 of file WaitingTask.h.
References m_ptr, and groupFilesInBlocks::temp.
Referenced by edm::WaitingTaskList::add(), and edm::WaitingTaskHolder::doneWaiting().
|
inline |
Returns exception thrown by dependent task.
If the value is non-null then the dependent task failed.
Definition at line 52 of file WaitingTask.h.
References m_ptr.
Referenced by edm::FunctorWaitingTask< F >::execute(), and edm::Worker::RunModuleTask< T >::execute().
|
friend |
Definition at line 39 of file WaitingTask.h.
|
friend |
Definition at line 38 of file WaitingTask.h.
|
private |
Definition at line 72 of file WaitingTask.h.
Referenced by dependentTaskFailed(), exceptionPtr(), and ~WaitingTask().