diff options
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/task_pool.cc | 4 |
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 } }; |