|
Blender
V3.3
|
#include <task.h>
Classes | |
| struct | Summary |
Public Member Functions | |
| TaskPool () | |
| ~TaskPool () | |
| void | push (TaskRunFunction &&task) |
| void | wait_work (Summary *stats=NULL) |
| void | cancel () |
Static Public Member Functions | |
| static bool | canceled () |
Public Attributes | |
| TaskPoolType | type |
| bool | use_threads |
| ThreadMutex | user_mutex |
| void * | userdata |
| volatile bool | is_suspended |
| BLI_mempool * | suspended_mempool |
| ListBase | background_threads |
| ThreadQueue * | background_queue |
| volatile bool | background_is_canceling |
Protected Attributes | |
| tbb::task_group | tbb_group |
| double | start_time |
| int | num_tasks_pushed |
Definition at line 141 of file task_pool.cc.
| CCL_NAMESPACE_BEGIN TaskPool::TaskPool | ( | ) |
| void TaskPool::cancel | ( | ) |
Definition at line 41 of file task.cpp.
References num_tasks_pushed, and tbb_group.
Referenced by ~TaskPool().
| void TaskPool::push | ( | TaskRunFunction && | task | ) |
Definition at line 23 of file task.cpp.
References num_tasks_pushed, blender::compositor::task, and tbb_group.
Referenced by beckmann_table_build(), BVHBuild::build_node(), bvh_reference_sort_threaded(), ImageManager::device_load_builtin(), GeometryManager::device_update_displacement_images(), GeometryManager::device_update_volume_images(), and TEST().
Definition at line 29 of file task.cpp.
References NULL, TaskPool::Summary::num_tasks_handled, num_tasks_pushed, start_time, tbb_group, time_dt(), and TaskPool::Summary::time_total.
Referenced by beckmann_table_build(), bvh_reference_sort(), ImageManager::device_load_builtin(), GeometryManager::device_update_displacement_images(), GeometryManager::device_update_volume_images(), BVHBuild::run(), and TEST().
| volatile bool TaskPool::background_is_canceling |
Definition at line 158 of file task_pool.cc.
Referenced by background_task_pool_cancel(), and background_task_pool_canceled().
| ThreadQueue* TaskPool::background_queue |
Definition at line 157 of file task_pool.cc.
Referenced by background_task_pool_cancel(), background_task_pool_create(), background_task_pool_free(), background_task_pool_run(), background_task_pool_work_and_wait(), and background_task_run().
| ListBase TaskPool::background_threads |
Definition at line 156 of file task_pool.cc.
Referenced by background_task_pool_cancel(), background_task_pool_create(), background_task_pool_free(), background_task_pool_run(), and background_task_pool_work_and_wait().
| volatile bool TaskPool::is_suspended |
Definition at line 152 of file task_pool.cc.
Referenced by tbb_task_pool_create(), tbb_task_pool_run(), and tbb_task_pool_work_and_wait().
|
protected |
Definition at line 62 of file task.h.
Referenced by cancel(), push(), and wait_work().
|
protected |
Definition at line 59 of file task.h.
Referenced by wait_work().
| BLI_mempool* TaskPool::suspended_mempool |
Definition at line 153 of file task_pool.cc.
Referenced by tbb_task_pool_create(), tbb_task_pool_free(), tbb_task_pool_run(), and tbb_task_pool_work_and_wait().
|
protected |
Definition at line 54 of file task.h.
Referenced by cancel(), push(), tbb_task_pool_cancel(), tbb_task_pool_create(), tbb_task_pool_free(), tbb_task_pool_run(), tbb_task_pool_work_and_wait(), and wait_work().
| TaskPoolType TaskPool::type |
Definition at line 142 of file task_pool.cc.
Referenced by BLI_task_pool_cancel(), BLI_task_pool_current_canceled(), BLI_task_pool_free(), BLI_task_pool_push(), BLI_task_pool_work_and_wait(), task_pool_create_ex(), and tbb_task_pool_create().
| bool TaskPool::use_threads |
Definition at line 143 of file task_pool.cc.
Referenced by task_pool_create_ex(), tbb_task_pool_cancel(), tbb_task_pool_canceled(), tbb_task_pool_create(), tbb_task_pool_free(), tbb_task_pool_run(), and tbb_task_pool_work_and_wait().
| ThreadMutex TaskPool::user_mutex |
Definition at line 145 of file task_pool.cc.
Referenced by BLI_task_pool_free(), BLI_task_pool_user_mutex(), and task_pool_create_ex().
| void* TaskPool::userdata |
Definition at line 146 of file task_pool.cc.
Referenced by BLI_task_pool_user_data(), and task_pool_create_ex().