# std.Io.Threaded: avoid extra fields of Thread · gitcafe/zig

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

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

Visibility: public

Requested revision: 6d9e6e2c385650521289088968e16e0b5a1eed60

Requested commit: 6d9e6e2c385650521289088968e16e0b5a1eed60

Commit: 6d9e6e2c385650521289088968e16e0b5a1eed60

Tree: a6beb3327559aca9f2ed987f2e4948e12204fa20

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Io.Threaded: avoid extra fields of Thread

As mlugg pointed out those race when a thread finishes an operation just
after it is canceled and then that thread to picks up another task,
resulting in these fields being potentially overwritten.

This updates fileReadStreaming on Windows to handle being alerted, and
then manage its own cancelation of the file I/O.

```

## Parents

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

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