Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/intern/task_graph.cc
| Show All 22 Lines | |||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "BLI_task.h" | #include "BLI_task.h" | ||||
| #include <memory> | #include <memory> | ||||
| #include <vector> | #include <vector> | ||||
| #ifdef WITH_TBB | #ifdef WITH_TBB | ||||
| /* Quiet top level deprecation message, unrelated to API usage here. */ | |||||
| # define TBB_SUPPRESS_DEPRECATED_MESSAGES 1 | |||||
| # include <tbb/flow_graph.h> | # include <tbb/flow_graph.h> | ||||
| # include <tbb/tbb.h> | |||||
| #endif | #endif | ||||
| /* Task Graph */ | /* Task Graph */ | ||||
| struct TaskGraph { | struct TaskGraph { | ||||
| #ifdef WITH_TBB | #ifdef WITH_TBB | ||||
| tbb::flow::graph tbb_graph; | tbb::flow::graph tbb_graph; | ||||
| #endif | #endif | ||||
| std::vector<std::unique_ptr<TaskNode>> nodes; | std::vector<std::unique_ptr<TaskNode>> nodes; | ||||
| ▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines | |||||