Skip to content

Commit 435d2ec

Browse files
updated balance load strategy
1 parent fab9829 commit 435d2ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

taskflow/threadpool/workstealing_threadpool.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ void WorkStealingThreadpool<Closure>::_balance_load(unsigned me) {
415415

416416
// return if no idler - this might not be the right value
417417
// but it doesn't affect the correctness
418-
if(_idlers.empty() || _workers[me].queue.size() <= 1) {
418+
if(_idlers.empty() || _workers[me].queue.size() <= 4) {
419419
return;
420420
}
421421

0 commit comments

Comments
 (0)