Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/intern/COM_WorkScheduler.cc
| Show First 20 Lines • Show All 405 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| BLI_task_pool_push( | BLI_task_pool_push( | ||||
| g_work_scheduler.task.pool, threading_model_task_execute, package, false, nullptr); | g_work_scheduler.task.pool, threading_model_task_execute, package, false, nullptr); | ||||
| } | } | ||||
| static void threading_model_task_start() | static void threading_model_task_start() | ||||
| { | { | ||||
| BLI_thread_local_create(g_thread_device); | BLI_thread_local_create(g_thread_device); | ||||
| g_work_scheduler.task.pool = BLI_task_pool_create(nullptr, TASK_PRIORITY_HIGH); | g_work_scheduler.task.pool = BLI_task_pool_create( | ||||
| nullptr, TASK_PRIORITY_HIGH, TASK_ISOLATION_ON); | |||||
| } | } | ||||
| static void threading_model_task_finish() | static void threading_model_task_finish() | ||||
| { | { | ||||
| BLI_task_pool_work_and_wait(g_work_scheduler.task.pool); | BLI_task_pool_work_and_wait(g_work_scheduler.task.pool); | ||||
| } | } | ||||
| static void threading_model_task_stop() | static void threading_model_task_stop() | ||||
| ▲ Show 20 Lines • Show All 170 Lines • Show Last 20 Lines | |||||