Blender V5.3
TaskPool Class Reference

#include <task.h>

Classes

struct  Summary

Public Member Functions

 TaskPool ()
 ~TaskPool ()
void push (TaskRunFunction &&task)
void wait_work (Summary *stats=nullptr)
void cancel ()

Static Public Member Functions

static bool canceled ()

Protected Attributes

tbb::task_group tbb_group
double start_time
int num_tasks_pushed

Detailed Description

Definition at line 28 of file task.h.

Constructor & Destructor Documentation

◆ TaskPool()

CCL_NAMESPACE_BEGIN TaskPool::TaskPool ( )

Definition at line 14 of file task.cpp.

References num_tasks_pushed, start_time, and time_dt().

◆ ~TaskPool()

TaskPool::~TaskPool ( )

Definition at line 16 of file task.cpp.

References cancel().

Member Function Documentation

◆ cancel()

void TaskPool::cancel ( )

Definition at line 39 of file task.cpp.

References num_tasks_pushed, and tbb_group.

Referenced by ~TaskPool().

◆ canceled()

bool TaskPool::canceled ( )
static

Definition at line 48 of file task.cpp.

◆ push()

◆ wait_work()

Member Data Documentation

◆ num_tasks_pushed

int TaskPool::num_tasks_pushed
protected

Definition at line 62 of file task.h.

Referenced by cancel(), push(), TaskPool(), and wait_work().

◆ start_time

double TaskPool::start_time
protected

Definition at line 59 of file task.h.

Referenced by TaskPool(), and wait_work().

◆ tbb_group

tbb::task_group TaskPool::tbb_group
protected

Definition at line 54 of file task.h.

Referenced by cancel(), push(), and wait_work().


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