Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/intern/task_range.cc
| Show All 26 Lines | |||||
| #include "DNA_listBase.h" | #include "DNA_listBase.h" | ||||
| #include "BLI_task.h" | #include "BLI_task.h" | ||||
| #include "BLI_threads.h" | #include "BLI_threads.h" | ||||
| #include "atomic_ops.h" | #include "atomic_ops.h" | ||||
| #ifdef WITH_TBB | #ifdef WITH_TBB | ||||
| /* Quiet top level deprecation message, unrelated to API usage here. */ | # include <tbb/blocked_range.h> | ||||
| # define TBB_SUPPRESS_DEPRECATED_MESSAGES 1 | # include <tbb/enumerable_thread_specific.h> | ||||
| # include <tbb/tbb.h> | # include <tbb/parallel_for.h> | ||||
| # include <tbb/parallel_reduce.h> | |||||
| #endif | #endif | ||||
| #ifdef WITH_TBB | #ifdef WITH_TBB | ||||
| /* Functor for running TBB parallel_for and parallel_reduce. */ | /* Functor for running TBB parallel_for and parallel_reduce. */ | ||||
| struct RangeTask { | struct RangeTask { | ||||
| TaskParallelRangeFunc func; | TaskParallelRangeFunc func; | ||||
| void *userdata; | void *userdata; | ||||
| ▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines | |||||