| The Gaudi Framework v32r1 (f65d50dc)

Public Member Functions | Private Attributes | List of all members
Gaudi::SerialTaskQueue::SerialWorkItemRunner Class Reference

Helper class to wrap a SerialWorkItem in a tbb::task. More...

Inheritance diagram for Gaudi::SerialTaskQueue::SerialWorkItemRunner:
[legend]
Collaboration diagram for Gaudi::SerialTaskQueue::SerialWorkItemRunner:
[legend]

## Public Member Functions
| SerialWorkItemRunner (SerialWorkItem *item)
| Initialize the instance. More...
tbb::task * | execute () override
| Call the run method of the work item. More...

## Private Attributes
SerialWorkItem * | m_item
| Pointer to the work item to be executed. More...

## Detailed Description

Helper class to wrap a SerialWorkItem in a tbb::task.

Definition at line 80 of file SerialTaskQueue.h.

## Constructor & Destructor Documentation

## ◆ SerialWorkItemRunner()

Gaudi::SerialTaskQueue::SerialWorkItemRunner::SerialWorkItemRunner | ( | SerialWorkItem * | item | ) |
| inline

Initialize the instance.

Definition at line 83 of file SerialTaskQueue.h.

83 : m_item( item ) {}
Gaudi::SerialTaskQueue::SerialWorkItemRunner::m_item
SerialWorkItem * m_item
Pointer to the work item to be executed.
Definition: SerialTaskQueue.h:93

## Member Function Documentation

## ◆ execute()

tbb::task* Gaudi::SerialTaskQueue::SerialWorkItemRunner::execute | ( |  | ) |
| inline override

Call the run method of the work item.

Definition at line 85 of file SerialTaskQueue.h.

85 {
86 m_item->run();
87 return NULL;
88 }
Gaudi::SerialTaskQueue::SerialWorkItem::run
void run()
Execute the WorkItem and notify the SerialTaskQueue of the completion.
Definition: SerialTaskQueue.h:104
Gaudi::SerialTaskQueue::SerialWorkItemRunner::m_item
SerialWorkItem * m_item
Pointer to the work item to be executed.
Definition: SerialTaskQueue.h:93

## Member Data Documentation

## ◆ m_item

SerialWorkItem* Gaudi::SerialTaskQueue::SerialWorkItemRunner::m_item
| private

Pointer to the work item to be executed.

Note
  we do not own the work item (it deletes itself)

Definition at line 93 of file SerialTaskQueue.h.

The documentation for this class was generated from the following file:

- GaudiKernel/GaudiKernel/SerialTaskQueue.h