diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-05-02 14:08:59 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-05-02 14:09:17 -0400 |
| commit | 5656f5090d8646e076db50da03cfc6ae686eb76b (patch) | |
| tree | 89b400bd5cf8eadf57b92af194a44bc9530f9594 /lib/std/thread.zig | |
| parent | 9dac8a5be9f5e439ea857b22867aaf2dc5b70c62 (diff) | |
| download | zig-5656f5090d8646e076db50da03cfc6ae686eb76b.tar.gz zig-5656f5090d8646e076db50da03cfc6ae686eb76b.zip | |
fs.File: improve handling async I/O on Windows
Before it was possible for .intended_io_mode = .blocking,
.capable_io_mode = .evented, and then the implementation would put a
request on the fs thread, which is the wrong behavior. Now it always
calls the appropriate WriteFile/ReadFile function, passing the intended
io mode directly as a parameter.
This makes the behavior tests pass on Windows with --test-evented-io.
Diffstat (limited to 'lib/std/thread.zig')
0 files changed, 0 insertions, 0 deletions
