Skip to content

Commit

Permalink
Align leave_policy variables names across code
Browse files Browse the repository at this point in the history
Signed-off-by: Isaev, Ilya <[email protected]>
  • Loading branch information
isaevil committed Dec 17, 2024
1 parent 77985c0 commit 1a6b73c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tbb/arena.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ class thread_leave_manager {

std::atomic<std::uint64_t> my_state{0};
public:
void set_initial_state(tbb::task_arena::leave_policy wl) {
if (wl == tbb::task_arena::leave_policy::automatic) {
void set_initial_state(tbb::task_arena::leave_policy lp) {
if (lp == tbb::task_arena::leave_policy::automatic) {
std::uint64_t platform_policy = governor::hybrid_cpu() ? FAST_LEAVE : DELAYED_LEAVE;
my_state.store(platform_policy, std::memory_order_relaxed);
} else {
__TBB_ASSERT(wl == tbb::task_arena::leave_policy::fast,
__TBB_ASSERT(lp == tbb::task_arena::leave_policy::fast,
"Was the new value introduced for leave policy?");
my_state.store(FAST_LEAVE, std::memory_order_relaxed);
}
Expand Down

0 comments on commit 1a6b73c

Please sign in to comment.