Page MenuHomePhabricator

posixworker: avoid creating workers that end up getting no work
ClosedPublic

Authored by martinvonz on Aug 13 2020, 1:45 PM.

Details

Summary

If workers (the detected or configured number of CPUs) is greater
than the number of work items, then some of the workers end up getting
0 work items. Let's not create such workers.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

martinvonz created this revision.Aug 13 2020, 1:45 PM
pulkit accepted this revision.Aug 14 2020, 4:40 AM
This revision is now accepted and ready to land.Aug 14 2020, 4:40 AM