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

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

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

Visibility: public

Requested revision: e0d9c04e35bf122b362697b543f5fb917a561182

Requested commit: e0d9c04e35bf122b362697b543f5fb917a561182

Commit: e0d9c04e35bf122b362697b543f5fb917a561182

Tree: 8a814fca88f1b1ebecc9d306109205442df3cc49

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

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

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