#include <TaskBase.h>
Public Member Functions | |
unsigned int | decrement_ref_count () |
virtual void | execute ()=0 |
void | increment_ref_count () |
TaskBase () | |
Constructor. More... | |
virtual | ~TaskBase ()=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.
|
inline |
|
virtualdefault |
|
inline |
Definition at line 42 of file TaskBase.h.
References m_refCount.
Referenced by edm::WaitingTaskList::add(), edm::WaitingTaskWithArenaHolder::makeWaitingTaskHolderAndRelease(), and edm::Worker::prePrefetchSelectionAsync().
|
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(), and edm::Worker::prePrefetchSelectionAsync().
|
inline |
Definition at line 41 of file TaskBase.h.
References m_refCount.
Referenced by edm::WaitingTaskList::add(), edm::Worker::prePrefetchSelectionAsync(), 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().