Skip to content

Commit

Permalink
set TBB_PREVIEW_GLOBAL_CONTROL for older tbb versions
Browse files Browse the repository at this point in the history
  • Loading branch information
xvallspl committed Jan 21, 2021
1 parent bbed601 commit 0b0a560
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/imt/src/RTaskArena.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <mutex>
#include <thread>
#include "tbb/task_arena.h"
#define TBB_PREVIEW_GLOBAL_CONTROL 1 // required for TBB versions preceding 2019_U4
#include "tbb/global_control.h"

//////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 2 additions & 0 deletions core/imt/src/TThreadExecutor.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#pragma GCC diagnostic ignored "-Wshadow"
#endif
#include "tbb/tbb.h"
#define TBB_PREVIEW_GLOBAL_CONTROL 1 // required for TBB versions preceding 2019_U4
#include "tbb/global_control.h"
#if !defined(_MSC_VER)
#pragma GCC diagnostic pop
#endif
Expand Down

0 comments on commit 0b0a560

Please sign in to comment.