pkgcheck.jobserver module¶
Client for the POSIX jobserver protocol.
See https://www.gnu.org/software/make/manual/html_node/POSIX-Jobserver.html
- class pkgcheck.jobserver.JobServer(read_fd=None, write_fd=None, close=False)[source]¶
Bases:
objectHolder of job tokens taken from a jobserver.
Instances are always usable; one that found no jobserver to connect to is falsy and simply never hands out a token.
- classmethod connect()[source]¶
Connect to the jobserver exported in the environment, if there is one.
- property held¶
Number of tokens currently held.