Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/util_tbb.h
| Show All 15 Lines | |||||
| #ifndef __UTIL_TBB_H__ | #ifndef __UTIL_TBB_H__ | ||||
| #define __UTIL_TBB_H__ | #define __UTIL_TBB_H__ | ||||
| /* TBB includes <windows.h>, do it ourselves first so we are sure | /* TBB includes <windows.h>, do it ourselves first so we are sure | ||||
| * WIN32_LEAN_AND_MEAN and similar are defined beforehand. */ | * WIN32_LEAN_AND_MEAN and similar are defined beforehand. */ | ||||
| #include "util_windows.h" | #include "util_windows.h" | ||||
| #define TBB_SUPPRESS_DEPRECATED_MESSAGES 1 | |||||
| #include <tbb/tbb.h> | #include <tbb/tbb.h> | ||||
| #include <tbb/enumerable_thread_specific.h> | |||||
| #include <tbb/parallel_for.h> | |||||
| #include <tbb/task_arena.h> | |||||
| #include <tbb/task_group.h> | |||||
| #if TBB_INTERFACE_VERSION_MAJOR >= 10 | #if TBB_INTERFACE_VERSION_MAJOR >= 10 | ||||
| # define WITH_TBB_GLOBAL_CONTROL | # define WITH_TBB_GLOBAL_CONTROL | ||||
| # include <tbb/global_control.h> | |||||
| #endif | #endif | ||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| using tbb::blocked_range; | using tbb::blocked_range; | ||||
| using tbb::enumerable_thread_specific; | using tbb::enumerable_thread_specific; | ||||
| using tbb::parallel_for; | using tbb::parallel_for; | ||||
| Show All 15 Lines | |||||