HomePhabricator

posixworker: avoid creating workers that end up getting no work

Authored by martinvonz.

Description

posixworker: avoid creating workers that end up getting no work

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.

Differential Revision: https://phab.mercurial-scm.org/D8927