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

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

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

Visibility: public

Requested revision: b47080026508f411c9fbda53d62d15dc5e90c2f9

Requested commit: b47080026508f411c9fbda53d62d15dc5e90c2f9

Commit: b47080026508f411c9fbda53d62d15dc5e90c2f9

Tree: 95d57e6247b1b9e8f1710dd67bc4cb09f91b8be0

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

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

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