Blender  V3.3
Public Member Functions | Public Attributes | List of all members
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
 
voidtaskdata
 
bool free_taskdata
 
TaskFreeFunction freedata
 

Detailed Description

Definition at line 32 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 40 of file task_pool.cc.

◆ ~Task()

Task::~Task ( )
inline

Definition at line 49 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 65 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 162 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 37 of file task_pool.cc.

Referenced by ~Task().

◆ freedata

TaskFreeFunction Task::freedata

Definition at line 38 of file task_pool.cc.

Referenced by ~Task().

◆ pool

TaskPool* Task::pool

Definition at line 34 of file task_pool.cc.

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

◆ run

TaskRunFunction Task::run

Definition at line 35 of file task_pool.cc.

Referenced by operator()().

◆ taskdata

void* Task::taskdata

Definition at line 36 of file task_pool.cc.

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


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