OpenSDN source code
TaskFunctor Class Reference

A private class used to implement tbb::task An object is created when task is ready for execution and registered with tbb::task. More...

Collaboration diagram for TaskFunctor:

Public Member Functions

 TaskFunctor (Task *t)
 Creates a new instance of TaskFunctor using the provided implementaton (a parent). More...
 
 TaskFunctor (const TaskFunctor &tf)
 Creates a copy of the object. More...
 
 TaskFunctor (TaskFunctor &&tf)
 
virtual ~TaskFunctor ()
 Destructor is called when a task execution is compeleted. Invoked implicitly by tbb::task. Invokes OnTaskExit to schedule tasks pending tasks. More...
 
void operator() () const
 Method called from TBB to execute the task. Invokes Run() method of the parent (an implementation). Supports task continuation when Run() returns false. More...
 

Private Member Functions

const TaskFunctor & operator= (const TaskFunctor)=delete
 

Private Attributes

Task * parent_
 

Detailed Description

A private class used to implement tbb::task An object is created when task is ready for execution and registered with tbb::task.

Definition at line 47 of file task.cc.

Constructor & Destructor Documentation

◆ TaskFunctor() [1/3]

TaskFunctor::TaskFunctor ( Task *  t)
inline

Creates a new instance of TaskFunctor using the provided implementaton (a parent).

Definition at line 52 of file task.cc.

◆ TaskFunctor() [2/3]

TaskFunctor::TaskFunctor ( const TaskFunctor &  tf)
inline

Creates a copy of the object.

Definition at line 55 of file task.cc.

◆ TaskFunctor() [3/3]

TaskFunctor::TaskFunctor ( TaskFunctor &&  tf)
inline

Definition at line 58 of file task.cc.

◆ ~TaskFunctor()

TaskFunctor::~TaskFunctor ( )
virtual

Destructor is called when a task execution is compeleted. Invoked implicitly by tbb::task. Invokes OnTaskExit to schedule tasks pending tasks.

Definition at line 426 of file task.cc.

Member Function Documentation

◆ operator()()

void TaskFunctor::operator() ( ) const

Method called from TBB to execute the task. Invokes Run() method of the parent (an implementation). Supports task continuation when Run() returns false.

Definition at line 371 of file task.cc.

Here is the call graph for this function:

◆ operator=()

const TaskFunctor& TaskFunctor::operator= ( const  TaskFunctor)
privatedelete

Member Data Documentation

◆ parent_

Task* TaskFunctor::parent_
mutableprivate

Definition at line 74 of file task.cc.


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