# std.Thread.cpuCount on Windows uses the PEB · gitcafe/zig

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

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

Visibility: public

Requested revision: 6fcf6716be3021d99d4972e8ca9b2139e1f8f40b

Requested commit: 6fcf6716be3021d99d4972e8ca9b2139e1f8f40b

Commit: 6fcf6716be3021d99d4972e8ca9b2139e1f8f40b

Tree: ce59f492173f2bf1a8803701fa7a26a83ec1dca3

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Thread.cpuCount on Windows uses the PEB

rather than calling GetSystemInfo from kernel32.dll. Also remove
OutOfMemory from the error set.

```

## Parents

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

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