#include <TaskBase.h>
Public Member Functions | |
unsigned int | decrement_ref_count () noexcept |
virtual void | execute ()=0 |
void | increment_ref_count () noexcept |
TaskBase () noexcept | |
Constructor. More... | |
virtual | ~TaskBase () noexcept=default |
Private Member Functions | |
virtual void | recycle () |
Private Attributes | |
std::atomic< unsigned int > | m_refCount {0} |
Friends | |
class | TaskSentry |
Definition at line 31 of file TaskBase.h.
|
inlinenoexcept |
|
virtualdefaultnoexcept |
|
inlinenoexcept |
Definition at line 42 of file TaskBase.h.
References m_refCount.
Referenced by edm::WaitingTaskList::add(), and edm::WaitingTaskWithArenaHolder::makeWaitingTaskHolderAndRelease().
|
pure virtual |
Implemented in edm::Worker::HandleExternalWorkExceptionTask, edm::Worker::AcquireTask< OccurrenceTraits< EventPrincipal, BranchActionStreamBegin >, DUMMY >, edm::Worker::AcquireTask< T, DUMMY >, edm::Worker::RunModuleTask< T >, edm::FunctorWaitingTask< F >, edm::FinalWaitingTask, and edm::FunctorTask< F >.
Referenced by edm::WaitingTaskList::add().
|
inlinenoexcept |
Definition at line 41 of file TaskBase.h.
References m_refCount.
Referenced by edm::WaitingTaskList::add(), edm::WaitingTaskHolder::WaitingTaskHolder(), and edm::WaitingTaskWithArenaHolder::WaitingTaskWithArenaHolder().
|
inlineprivatevirtual |
Reimplemented in edm::FinalWaitingTask.
Definition at line 45 of file TaskBase.h.
Referenced by edm::TaskSentry::~TaskSentry().
|
friend |
Definition at line 33 of file TaskBase.h.
|
private |
Definition at line 47 of file TaskBase.h.
Referenced by decrement_ref_count(), and increment_ref_count().