|
Blender V5.3
|
Public Member Functions | |
| TaskPool (const TaskPoolType type, const eTaskPriority priority, void *userdata) | |
| ~TaskPool () | |
| TaskPool (TaskPool &&other)=delete | |
| TaskPool (const TaskPool &other)=delete | |
| TaskPool & | operator= (const TaskPool &other)=delete |
| TaskPool & | operator= (TaskPool &&other)=delete |
| void | task_push (TaskRunFunction run, void *taskdata, bool free_taskdata, TaskFreeFunction freedata) |
| void | work_and_wait () |
Public Attributes | |
| TaskPoolType | type |
| bool | use_threads |
| void * | userdata |
| volatile bool | is_suspended = false |
| Vector< Task > | suspended_tasks |
| ListBaseT< ThreadSlot > | background_threads |
| ThreadQueue * | background_queue |
| eTaskPriority | priority |
Definition at line 161 of file task_pool.cc.
|
inline |
Definition at line 180 of file task_pool.cc.
References blender::BLI_task_scheduler_num_threads(), blender::BLI_thread_queue_init(), blender::BLI_threadpool_init(), priority, blender::TASK_POOL_BACKGROUND, blender::TASK_POOL_BACKGROUND_SERIAL, blender::TASK_POOL_NO_THREADS, blender::TASK_POOL_TBB, blender::TASK_POOL_TBB_SUSPENDED, type, use_threads, and userdata.
Referenced by operator=(), operator=(), TaskPool(), and TaskPool().
|
inline |
Definition at line 216 of file task_pool.cc.
References blender::BLI_thread_queue_free(), blender::BLI_threadpool_end(), blender::TASK_POOL_BACKGROUND, blender::TASK_POOL_BACKGROUND_SERIAL, blender::TASK_POOL_NO_THREADS, blender::TASK_POOL_TBB, blender::TASK_POOL_TBB_SUSPENDED, and type.
|
delete |
References TaskPool(), type, use_threads, and userdata.
|
delete |
References TaskPool().
References TaskPool().
References TaskPool().
|
inline |
Create and add a new task to the pool.
Definition at line 254 of file task_pool.cc.
References blender::TASK_POOL_BACKGROUND, blender::TASK_POOL_BACKGROUND_SERIAL, blender::TASK_POOL_NO_THREADS, blender::TASK_POOL_TBB, and blender::TASK_POOL_TBB_SUSPENDED.
Referenced by blender::BLI_task_pool_push().
|
inline |
Work and wait until all tasks are done.
Definition at line 275 of file task_pool.cc.
References blender::TASK_POOL_BACKGROUND, blender::TASK_POOL_BACKGROUND_SERIAL, blender::TASK_POOL_NO_THREADS, blender::TASK_POOL_TBB, and blender::TASK_POOL_TBB_SUSPENDED.
Referenced by blender::BLI_task_pool_work_and_wait().
| ThreadQueue* blender::TaskPool::background_queue |
Definition at line 176 of file task_pool.cc.
| ListBaseT<ThreadSlot> blender::TaskPool::background_threads |
Definition at line 175 of file task_pool.cc.
| volatile bool blender::TaskPool::is_suspended = false |
Definition at line 171 of file task_pool.cc.
| eTaskPriority blender::TaskPool::priority |
Definition at line 178 of file task_pool.cc.
Referenced by TaskPool().
Definition at line 172 of file task_pool.cc.
| TaskPoolType blender::TaskPool::type |
Definition at line 162 of file task_pool.cc.
Referenced by TaskPool(), TaskPool(), and ~TaskPool().
| bool blender::TaskPool::use_threads |
Definition at line 163 of file task_pool.cc.
Referenced by TaskPool(), and TaskPool().
| void* blender::TaskPool::userdata |
Definition at line 165 of file task_pool.cc.
Referenced by blender::BLI_task_pool_user_data(), TaskPool(), and TaskPool().