|
Blender V5.3
|
#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 |
| CCL_NAMESPACE_BEGIN TaskPool::TaskPool | ( | ) |
Definition at line 14 of file task.cpp.
References num_tasks_pushed, start_time, and time_dt().
| void TaskPool::cancel | ( | ) |
Definition at line 39 of file task.cpp.
References num_tasks_pushed, and tbb_group.
Referenced by ~TaskPool().
| void TaskPool::push | ( | TaskRunFunction && | task | ) |
Definition at line 21 of file task.cpp.
References num_tasks_pushed, and tbb_group.
Referenced by BVHBuild::build_node(), BVHBuild::build_node(), bvh_reference_sort_threaded(), ImageManager::device_load_builtin(), ImageManager::device_load_images(), ImageManager::device_update(), Integrator::device_update(), SVMShaderManager::device_update_specific(), TEST(), and TEST().
| void TaskPool::wait_work | ( | Summary * | stats = nullptr | ) |
Definition at line 27 of file task.cpp.
References TaskPool::Summary::num_tasks_handled, num_tasks_pushed, start_time, tbb_group, time_dt(), and TaskPool::Summary::time_total.
Referenced by bvh_reference_sort(), ImageManager::device_load_builtin(), ImageManager::device_load_images(), ImageManager::device_update(), Integrator::device_update(), SVMShaderManager::device_update_specific(), BVHBuild::run(), TEST(), and TEST().
|
protected |
Definition at line 62 of file task.h.
Referenced by cancel(), push(), TaskPool(), and wait_work().
|
protected |
Definition at line 59 of file task.h.
Referenced by TaskPool(), and wait_work().
|
protected |
Definition at line 54 of file task.h.
Referenced by cancel(), push(), and wait_work().