From cc3d3a453e769a57399b1eae371d7bde9b67731c Mon Sep 17 00:00:00 2001 From: Ray Molenkamp Date: Thu, 14 May 2020 10:39:12 -0600 Subject: Fix: Broken build with TBB disabled. Lite builds without TBB and still needs the alternative codepath --- source/blender/blenlib/intern/task_pool.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/blenlib/intern/task_pool.cc') 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 } }; -- cgit v1.2.3