Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_task.h
| Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | |||||
| /* work and wait until all tasks are done */ | /* work and wait until all tasks are done */ | ||||
| void BLI_task_pool_work_and_wait(TaskPool *pool); | void BLI_task_pool_work_and_wait(TaskPool *pool); | ||||
| /* cancel all tasks, keep worker threads running */ | /* cancel all tasks, keep worker threads running */ | ||||
| void BLI_task_pool_cancel(TaskPool *pool); | void BLI_task_pool_cancel(TaskPool *pool); | ||||
| /* stop all worker threads */ | /* stop all worker threads */ | ||||
| void BLI_task_pool_stop(TaskPool *pool); | void BLI_task_pool_stop(TaskPool *pool); | ||||
| /* set number of threads allowed to be used by this pool */ | /* set number of threads allowed to be used by this pool */ | ||||
| void BLI_pool_set_num_threads(TaskPool *pool, int num_threads); | void BLI_pool_set_num_threads(TaskPool *pool, size_t num_threads); | ||||
| /* for worker threads, test if canceled */ | /* for worker threads, test if canceled */ | ||||
| bool BLI_task_pool_canceled(TaskPool *pool); | bool BLI_task_pool_canceled(TaskPool *pool); | ||||
| /* optional userdata pointer to pass along to run function */ | /* optional userdata pointer to pass along to run function */ | ||||
| void *BLI_task_pool_userdata(TaskPool *pool); | void *BLI_task_pool_userdata(TaskPool *pool); | ||||
| /* optional mutex to use from run function */ | /* optional mutex to use from run function */ | ||||
| ▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines | |||||