#include <WaitingTask.h>
|
std::atomic< std::exception_ptr * > | m_ptr |
|
Definition at line 34 of file WaitingTask.h.
edm::WaitingTask::WaitingTask |
( |
| ) |
|
|
inline |
Constructor.
Definition at line 40 of file WaitingTask.h.
std::atomic< std::exception_ptr * > m_ptr
edm::WaitingTask::~WaitingTask |
( |
| ) |
|
|
inlineoverride |
Definition at line 41 of file WaitingTask.h.
References m_ptr.
std::atomic< std::exception_ptr * > m_ptr
void edm::WaitingTask::dependentTaskFailed |
( |
std::exception_ptr |
iPtr | ) |
|
|
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 60 of file WaitingTask.h.
References m_ptr, and groupFilesInBlocks::temp.
Referenced by edm::WaitingTaskList::add().
61 if (iPtr and not
m_ptr) {
62 auto temp = std::make_unique<std::exception_ptr>(iPtr);
63 std::exception_ptr* expected =
nullptr;
64 if( m_ptr.compare_exchange_strong(expected,
temp.get()) ) {
std::atomic< std::exception_ptr * > m_ptr
std::exception_ptr const* edm::WaitingTask::exceptionPtr |
( |
| ) |
const |
|
inline |
std::atomic<std::exception_ptr*> edm::WaitingTask::m_ptr |
|
private |