Skip to content

Commit

Permalink
Update src/tbb/arena.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Pavel Kumbrasev <pavel.kumbrasev@intel.com>
  • Loading branch information
kboyarinov and pavelkumbrasev authored Jul 15, 2024
1 parent b3fec48 commit 466826b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tbb/arena.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,9 +629,9 @@ void task_arena_impl::enqueue(d1::task& t, d1::task_group_context* c, d1::task_a
a->enqueue_task(t, *ctx, *td);
}

d1::slot_id task_arena_impl::execution_slot(const d1::task_arena_base& arena) {
d1::slot_id task_arena_impl::execution_slot(const d1::task_arena_base& ta) {
thread_data* td = governor::get_thread_data_if_initialized();
if (td && (td->my_arena == arena.my_arena.load(std::memory_order_relaxed))) {
if (td && (td->my_arena == ta.my_arena.load(std::memory_order_relaxed))) {
return td->my_arena_index;
}
return d1::slot_id(-1);
Expand Down

0 comments on commit 466826b

Please sign in to comment.