Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2020-05-14 19:39:12 +0300
committerRay Molenkamp <github@lazydodo.com>2020-05-14 19:39:12 +0300
commitcc3d3a453e769a57399b1eae371d7bde9b67731c (patch)
treee7da9ee3da29d3a2b9a08597b2984eb0b0247da9 /source/blender/blenlib/intern/task_pool.cc
parent461fee5328fd4450126c495cb6823c33c0588672 (diff)
Fix: Broken build with TBB disabled.
Lite builds without TBB and still needs the alternative codepath
Diffstat (limited to 'source/blender/blenlib/intern/task_pool.cc')
-rw-r--r--source/blender/blenlib/intern/task_pool.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/task_pool.cc b/source/blender/blenlib/intern/task_pool.cc
index 42b635afcf1..670787697a3 100644
--- a/source/blender/blenlib/intern/task_pool.cc
+++ b/source/blender/blenlib/intern/task_pool.cc
@@ -114,7 +114,11 @@ class Task {
/* Execute task. */
void operator()() const
{
+#ifdef WITH_TBB
tbb::this_task_arena::isolate([this] { run(pool, taskdata); });
+#else
+ run(pool, taskdata);
+#endif
}
};