# new thread pool jobserver integration · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/e51fd6728fcc4dd93e3bd1ddb2e4ca96a8082b12)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: e51fd6728fcc4dd93e3bd1ddb2e4ca96a8082b12

Requested commit: e51fd6728fcc4dd93e3bd1ddb2e4ca96a8082b12

Commit: e51fd6728fcc4dd93e3bd1ddb2e4ca96a8082b12

Tree: 07b916bb71e2f6f733575bb3396a52c2a58a6af0

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
new thread pool jobserver integration

std.Thread.Pool: back to spawning all threads in initialization because
it's overall simpler. This scheme requires init to be passed a pointer
to the struct.

std.process.Child: implement integration with thread pool jobserver. The
environment variable is called `JOBSERVERV2`. The API works based on
assigning a thread pool to the child process.

build runner: store the thread pool in std.Build.Graph so that it can be
passed to child processes during the make phase.

Fix not allocating +1 pollfds in previous commit.

```

## Parents

- [c395df25aba0f1bdc1dd0cb6b9c7f14a90e72dae](https://git.cafe/gitcafe/zig/commit/c395df25aba0f1bdc1dd0cb6b9c7f14a90e72dae?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/e51fd6728fcc4dd93e3bd1ddb2e4ca96a8082b12?format=markdown)
