Blender V4.3
Task Class Reference

Public Member Functions

 Task (TaskPool *pool, TaskRunFunction run, void *taskdata, bool free_taskdata, TaskFreeFunction freedata)
 
 ~Task ()
 
 Task (Task &&other)
 
 Task (const Task &other)=delete
 
Taskoperator= (const Task &other)=delete
 
Taskoperator= (Task &&other)=delete
 
void operator() () const
 

Public Attributes

TaskPoolpool
 
TaskRunFunction run
 
void * taskdata
 
bool free_taskdata
 
TaskFreeFunction freedata
 

Detailed Description

Task

Unit of work to execute. This is a C++ class to work with TBB.

Definition at line 34 of file task_pool.cc.

Constructor & Destructor Documentation

◆ Task() [1/3]

Task::Task ( TaskPool * pool,
TaskRunFunction run,
void * taskdata,
bool free_taskdata,
TaskFreeFunction freedata )
inline

Definition at line 42 of file task_pool.cc.

◆ ~Task()

Task::~Task ( )
inline

Definition at line 51 of file task_pool.cc.

References free_taskdata, freedata, MEM_freeN(), pool, and taskdata.

◆ Task() [2/3]

Task::Task ( Task && other)
inline

Definition at line 67 of file task_pool.cc.

◆ Task() [3/3]

Task::Task ( const Task & other)
delete

Member Function Documentation

◆ operator()()

void Task::operator() ( ) const

Definition at line 169 of file task_pool.cc.

References pool, run, and taskdata.

◆ operator=() [1/2]

Task & Task::operator= ( const Task & other)
delete

◆ operator=() [2/2]

Task & Task::operator= ( Task && other)
delete

Member Data Documentation

◆ free_taskdata

bool Task::free_taskdata

Definition at line 39 of file task_pool.cc.

Referenced by ~Task().

◆ freedata

TaskFreeFunction Task::freedata

Definition at line 40 of file task_pool.cc.

Referenced by ~Task().

◆ pool

TaskPool* Task::pool

Definition at line 36 of file task_pool.cc.

Referenced by operator()(), and ~Task().

◆ run

TaskRunFunction Task::run

Definition at line 37 of file task_pool.cc.

Referenced by operator()().

◆ taskdata

void* Task::taskdata

Definition at line 38 of file task_pool.cc.

Referenced by operator()(), and ~Task().


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