# std.Io.Threaded: improve various Windows logic · gitcafe/zig

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

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

Visibility: public

Requested revision: 2b326d27d572156b534a096005182976b2ac3fe1

Requested commit: 2b326d27d572156b534a096005182976b2ac3fe1

Commit: 2b326d27d572156b534a096005182976b2ac3fe1

Tree: e5baafe701f8aa19621255fd74a4906022863204

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Io.Threaded: improve various Windows logic

* cache nul handle for child process execution
* make opening the nul file integrate properly with cancelation
* replace all calls to SleepEx to parking_sleep.sleep instead, making
  them properly cancelable. These sleeps are workarounds for Windows
  kernel bugs. Now you can even cancel while waiting for kernel bug
  workarounds!

```

## Parents

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

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