diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-10-14 20:59:16 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-10-29 06:20:49 -0700 |
| commit | 35ce907c06d5758adab276927ad8dbe730d6130d (patch) | |
| tree | c7d3839b953c4c0a7e5beee7090713d28fff04b3 /lib/std/Thread/Condition.zig | |
| parent | 1382e4122603fd2b57e4feb0eff76ba2d73a913a (diff) | |
| download | zig-35ce907c06d5758adab276927ad8dbe730d6130d.tar.gz zig-35ce907c06d5758adab276927ad8dbe730d6130d.zip | |
std.Io.net.HostName: move lookup to the interface
Unfortunately this can't be implemented "above the vtable" because
various operating systems don't provide low level DNS resolution
primitives such as just putting the list of nameservers in a file.
Without libc on Linux it works great though!
Anyway this also changes the API to be based on Io.Queue. By using a
large enough buffer, reusable code can be written that does not require
concurrent, yet takes advantage of responding to DNS queries as they
come in. I sketched out a new implementation of `HostName.connect` to
demonstrate this, but it will require an additional API (`Io.Select`) to
be implemented in a future commit.
This commit also introduces "uncancelable" variants for mutex locking,
waiting on a condition, and putting items into a queue.
Diffstat (limited to 'lib/std/Thread/Condition.zig')
0 files changed, 0 insertions, 0 deletions
