Skip to content

Commit 574975c

Browse files
committed
Reset stealing loop backoff counter when leaving block time back to stealing loop
Signed-off-by: Isaev, Ilya <ilya.isaev@intel.com>
1 parent 2df02d2 commit 574975c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tbb/waiters.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ class outermost_worker_waiter : public waiter_base {
6868
t2 = std::chrono::steady_clock::now())
6969
{
7070
if (!my_arena.is_empty() && !my_arena.is_recall_requested()) {
71+
// We are going back to stealing loop, thus in order to not set arena EMPTY instantly
72+
// in case when worker failed to find work we need to reset stealing loop backoff counter
73+
reset_wait();
7174
return true;
7275
}
7376

0 commit comments

Comments
 (0)