Fix: Broken build with TBB disabled.

Lite builds without TBB and still needs the alternative codepath
This commit is contained in:
Ray molenkamp 2020-05-14 10:39:12 -06:00
parent 461fee5328
commit cc3d3a453e
1 changed files with 4 additions and 0 deletions

View File

@ -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
}
};