Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f4f6fd1

Browse files
updated workstealing
1 parent 748b438 commit f4f6fd1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

taskflow/executor/workstealing.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,9 @@ void WorkStealingExecutor<Closure>::emplace(ArgsT&&... args){
710710
if(_num_idlers != num_workers() - 1) {
711711
return;
712712
}
713+
else {
714+
--_workers[pt.worker_id].mailbox;
715+
}
713716
}
714717
}
715718
// other threads

0 commit comments

Comments
 (0)