From 4280cadc48882ca88a1079672e05e451790b1ebd Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 4 May 2020 10:19:35 -0400 Subject: [PATCH] Avoid volatile assignment in TBB --- bundled/tbb-2018_U2/src/tbb/arena.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bundled/tbb-2018_U2/src/tbb/arena.cpp b/bundled/tbb-2018_U2/src/tbb/arena.cpp index c994a1ff29..e280a6926c 100644 --- a/bundled/tbb-2018_U2/src/tbb/arena.cpp +++ b/bundled/tbb-2018_U2/src/tbb/arena.cpp @@ -202,7 +202,8 @@ arena::arena ( market& m, unsigned num_slots, unsigned num_reserved_slots ) { my_max_num_workers = num_slots-num_reserved_slots; my_references = ref_external; // accounts for the master #if __TBB_TASK_PRIORITY - my_bottom_priority = my_top_priority = normalized_normal_priority; + my_bottom_priority = normalized_normal_priority; + my_top_priority = normalized_normal_priority; #endif /* __TBB_TASK_PRIORITY */ my_aba_epoch = m.my_arenas_aba_epoch; #if __TBB_ARENA_OBSERVER -- 2.39.5