Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/intern/task_scheduler.cc
| Show All 20 Lines | |||||
| */ | */ | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "BLI_task.h" | #include "BLI_task.h" | ||||
| #include "BLI_threads.h" | #include "BLI_threads.h" | ||||
| #ifdef WITH_TBB | #ifdef WITH_TBB | ||||
| /* Quiet top level deprecation message, unrelated to API usage here. */ | /* Need to include at least one header to get the version define. */ | ||||
| # define TBB_SUPPRESS_DEPRECATED_MESSAGES 1 | # include <tbb/blocked_range.h> | ||||
| # include <tbb/tbb.h> | |||||
| # if TBB_INTERFACE_VERSION_MAJOR >= 10 | # if TBB_INTERFACE_VERSION_MAJOR >= 10 | ||||
| # include <tbb/global_control.h> | |||||
| # define WITH_TBB_GLOBAL_CONTROL | # define WITH_TBB_GLOBAL_CONTROL | ||||
| # endif | # endif | ||||
| #endif | #endif | ||||
| /* Task Scheduler */ | /* Task Scheduler */ | ||||
| static int task_scheduler_num_threads = 1; | static int task_scheduler_num_threads = 1; | ||||
| #ifdef WITH_TBB_GLOBAL_CONTROL | #ifdef WITH_TBB_GLOBAL_CONTROL | ||||
| Show All 38 Lines | |||||