30 # include <tbb/blocked_range.h>
31 # if TBB_INTERFACE_VERSION_MAJOR >= 10
32 # include <tbb/global_control.h>
33 # define WITH_TBB_GLOBAL_CONTROL
40 #ifdef WITH_TBB_GLOBAL_CONTROL
41 static tbb::global_control *task_scheduler_global_control =
nullptr;
46 #ifdef WITH_TBB_GLOBAL_CONTROL
52 task_scheduler_global_control = OBJECT_GUARDED_NEW(
70 #ifdef WITH_TBB_GLOBAL_CONTROL
71 OBJECT_GUARDED_DELETE(task_scheduler_global_control, tbb::global_control);
int BLI_system_thread_count(void)
int BLI_system_num_threads_override_get(void)
Read Guarded memory(de)allocation.
void BLI_task_scheduler_exit()
static int task_scheduler_num_threads
int BLI_task_scheduler_num_threads()
void BLI_task_scheduler_init()
static int num_threads_override