# ThreadPool: Make join\(\) a no-op in single-threaded mode · gitcafe/zig

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

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

Visibility: public

Requested revision: 9b05474d797ea4600dbae36ae95d9eb042040bb2

Requested commit: 9b05474d797ea4600dbae36ae95d9eb042040bb2

Commit: 9b05474d797ea4600dbae36ae95d9eb042040bb2

Tree: 0ef7792ba1ca44026a287ec2360e61b4268f0b39

Author: Cody Tapscott

Committer: Andrew Kelley

## Message

```
ThreadPool: Make join() a no-op in single-threaded mode

This comptime gate is needed to make sure that purely single-threaded
programs don't generate calls to the std.Thread API.

WASI targets successfully build again with this change.

```

## Parents

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

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