]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid volatile assignment in TBB
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 4 May 2020 14:19:35 +0000 (10:19 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 4 May 2020 15:27:47 +0000 (11:27 -0400)
bundled/tbb-2018_U2/src/tbb/arena.cpp

index c994a1ff2979255c81e555dcb4a1ef6dafede11c..e280a6926c92adcd70e133148550eb0866916008 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.