Skip to content

Commit e35c2c2

Browse files
committed
Fix a bug found during code review
1 parent bedfb38 commit e35c2c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tbb/arena_slot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class arena_slot : private arena_slot_shared_state, private arena_slot_private_s
191191
hd = head.load(std::memory_order_relaxed);
192192
tl = tail.load(std::memory_order_relaxed);
193193
unlock_task_pool(the_task_pool);
194-
if ( (std::intptr_t)hd > (std::intptr_t)tl || ( hd == tl && !tail_unstable ) ) {
194+
if ( (std::intptr_t)hd >= (std::intptr_t)tl && !tail_unstable ) {
195195
return false;
196196
}
197197
}

0 commit comments

Comments
 (0)